-
Notifications
You must be signed in to change notification settings - Fork 0
/
BarObject.h
42 lines (28 loc) · 1.02 KB
/
BarObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// BarObject.h
// Bartender
//
// Created by Tom Houpt on 09/7/11.
// Copyright 2009 Behavioral Cybernetics. All rights reserved.
//
#import <Cocoa/Cocoa.h>
// BarObjects are objects with a code, name and description:
// BarItem
// BarGroup
// BarPhase
// BarExperiment
@interface BarObject : NSObject <NSCopying> {
NSString *name; // eg. "Area Postrema Lesions"
NSString *code; // eg "AP"
NSString *description; // brief description of the experiment
}
-(id)initWithName:(NSString *)newName andCode:(NSString *)newCode andDescription:(NSString *)newDescription;
-(void) setName:(NSString *)n;
-(void) setCode:(NSString *)t;
-(void) setDescription:(NSString *)d;
-(void) setDefaults; // should be overridden by subclass...
-(NSString *) name; // return a string with name, e.g. "Area Postrema Lesions"
-(NSString *) code; // return a string with the abbreviatede expt tag e.g. "AP"
-(NSString *) codeName; // return a string with both tag and name, e.g. "AP Area Postrema Lesions"
-(NSString *) description;
@end