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