Last change
on this file since 38 was
38,
checked in by dkearney, 19 years ago
|
added inital data structures for rappture variable objects
|
File size:
2.7 KB
|
Rev | Line | |
---|
[38] | 1 | |
---|
| 2 | #include <iostream> |
---|
| 3 | #include <string> |
---|
| 4 | #include <sstream> |
---|
| 5 | #include <stdlib.h> |
---|
| 6 | #include <errno.h> |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | // #include "RpLibrary.h" |
---|
| 10 | |
---|
| 11 | #ifndef _RpABOUT_H |
---|
| 12 | #define _RpABOUT_H |
---|
| 13 | |
---|
| 14 | class RpAbout |
---|
| 15 | { |
---|
| 16 | public: |
---|
| 17 | |
---|
| 18 | // users member fxns |
---|
| 19 | |
---|
| 20 | virtual RpAbout& setLabel (std::string newLabel); |
---|
| 21 | virtual RpAbout& setDesc (std::string newDesc); |
---|
| 22 | virtual RpAbout& setHints (std::string newHints); |
---|
| 23 | virtual RpAbout& setColor (std::string newColor); |
---|
| 24 | virtual RpAbout& setIcon (std::string newIcon); |
---|
| 25 | |
---|
| 26 | virtual std::string getLabel () const; |
---|
| 27 | virtual std::string getDesc () const; |
---|
| 28 | virtual std::string getHints () const; |
---|
| 29 | virtual std::string getColor () const; |
---|
| 30 | virtual std::string getIcon () const; |
---|
| 31 | |
---|
| 32 | RpAbout () |
---|
| 33 | : label (""), |
---|
| 34 | desc (""), |
---|
| 35 | hints (""), |
---|
| 36 | color (""), |
---|
| 37 | icon ("") |
---|
| 38 | {}; |
---|
| 39 | |
---|
| 40 | RpAbout ( |
---|
| 41 | std::string label |
---|
| 42 | ) |
---|
| 43 | : label (label), |
---|
| 44 | desc (""), |
---|
| 45 | hints (""), |
---|
| 46 | color (""), |
---|
| 47 | icon ("") |
---|
| 48 | {}; |
---|
| 49 | |
---|
| 50 | RpAbout ( |
---|
| 51 | std::string label, |
---|
| 52 | std::string desc |
---|
| 53 | ) |
---|
| 54 | : label (label), |
---|
| 55 | desc (desc), |
---|
| 56 | hints (""), |
---|
| 57 | color (""), |
---|
| 58 | icon ("") |
---|
| 59 | {}; |
---|
| 60 | |
---|
| 61 | RpAbout ( |
---|
| 62 | std::string label, |
---|
| 63 | std::string desc, |
---|
| 64 | std::string hints, |
---|
| 65 | std::string color, |
---|
| 66 | std::string icon |
---|
| 67 | ) |
---|
| 68 | : label (label), |
---|
| 69 | desc (desc), |
---|
| 70 | hints (hints), |
---|
| 71 | color (color), |
---|
| 72 | icon (icon) |
---|
| 73 | {} |
---|
| 74 | |
---|
| 75 | // copy constructor |
---|
| 76 | RpAbout ( const RpAbout& myRpAbout ) |
---|
| 77 | : label (myRpAbout.label), |
---|
| 78 | desc (myRpAbout.desc), |
---|
| 79 | hints (myRpAbout.hints), |
---|
| 80 | color (myRpAbout.color), |
---|
| 81 | icon (myRpAbout.icon) |
---|
| 82 | {} |
---|
| 83 | |
---|
| 84 | // default destructor |
---|
| 85 | virtual ~RpAbout () |
---|
| 86 | { |
---|
| 87 | // clean up dynamic memory |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | private: |
---|
| 91 | |
---|
| 92 | std::string label; |
---|
| 93 | std::string desc; |
---|
| 94 | std::string hints; |
---|
| 95 | std::string color; |
---|
| 96 | std::string icon; |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | }; |
---|
| 100 | |
---|
| 101 | /*--------------------------------------------------------------------------*/ |
---|
| 102 | /*--------------------------------------------------------------------------*/ |
---|
| 103 | |
---|
| 104 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.