Last change
on this file since 38 was
38,
checked in by dkearney, 18 years ago
|
added inital data structures for rappture variable objects
|
File size:
1.1 KB
|
Line | |
---|
1 | |
---|
2 | #include <iostream> |
---|
3 | #include <string> |
---|
4 | #include <sstream> |
---|
5 | #include <stdlib.h> |
---|
6 | #include <errno.h> |
---|
7 | |
---|
8 | // #include "RpLibrary.h" |
---|
9 | |
---|
10 | #ifndef _RpABOUT_H |
---|
11 | #include "RpAbout.h" |
---|
12 | #endif |
---|
13 | |
---|
14 | #ifndef _RpOPTION_H |
---|
15 | #define _RpOPTION_H |
---|
16 | |
---|
17 | class RpOption |
---|
18 | { |
---|
19 | public: |
---|
20 | |
---|
21 | // users member fxns |
---|
22 | |
---|
23 | virtual RpOption& setLabel (std::string newLabel); |
---|
24 | virtual std::string getLabel () const; |
---|
25 | |
---|
26 | /* |
---|
27 | RpOption () |
---|
28 | : about (RpAbout()) |
---|
29 | {}; |
---|
30 | */ |
---|
31 | |
---|
32 | RpOption ( |
---|
33 | std::string label |
---|
34 | ) |
---|
35 | : about (RpAbout(label)) |
---|
36 | {}; |
---|
37 | |
---|
38 | // copy constructor |
---|
39 | RpOption ( const RpOption& myRpOption ) |
---|
40 | : about (RpAbout(myRpOption.about)) |
---|
41 | {} |
---|
42 | |
---|
43 | // default destructor |
---|
44 | virtual ~RpOption () |
---|
45 | { |
---|
46 | // clean up dynamic memory |
---|
47 | } |
---|
48 | |
---|
49 | private: |
---|
50 | |
---|
51 | RpAbout about; |
---|
52 | }; |
---|
53 | |
---|
54 | /*--------------------------------------------------------------------------*/ |
---|
55 | /*--------------------------------------------------------------------------*/ |
---|
56 | |
---|
57 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.