summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/cdisplay.h
diff options
context:
space:
mode:
Diffstat (limited to 'ue3/mycpu/cdisplay.h')
-rw-r--r--ue3/mycpu/cdisplay.h41
1 files changed, 35 insertions, 6 deletions
diff --git a/ue3/mycpu/cdisplay.h b/ue3/mycpu/cdisplay.h
index 629ec88..ed9b84d 100644
--- a/ue3/mycpu/cdisplay.h
+++ b/ue3/mycpu/cdisplay.h
@@ -6,7 +6,7 @@
6 */ 6 */
7 7
8#ifndef CDISPLAY_H 8#ifndef CDISPLAY_H
9#define CDISPLAY_H #1 9#define CDISPLAY_H 1
10 10
11/** 11/**
12 * @class CDisplay 12 * @class CDisplay
@@ -19,14 +19,16 @@ class CDisplay
19 /** 19 /**
20 * @method CDisplay 20 * @method CDisplay
21 * @brief Default ctor 21 * @brief Default ctor
22 * @param - 22 * @param name name of display
23 * @return - 23 * @return -
24 * @globalvars none 24 * @globalvars none
25 * @exception none 25 * @exception none
26 * @conditions none 26 * @conditions none
27 */ 27 */
28 CDisplay() 28 CDisplay(std::string name)
29 {}; 29 {
30 m_name = name;
31 }
30 32
31 /** 33 /**
32 * @method ~CDisplay 34 * @method ~CDisplay
@@ -37,10 +39,37 @@ class CDisplay
37 * @exception none 39 * @exception none
38 * @conditions none 40 * @conditions none
39 */ 41 */
40 ~CDisplay(); 42 virtual ~CDisplay()
43 {}
44
45 /**
46 * @method getName
47 * @brief returns name of display
48 * @param -
49 * @return name of display
50 * @globalvars none
51 * @exception none
52 * @conditions none
53 */
54 virtual const std::string& getName()
55 {
56 return m_name;
57 }
58
59 /**
60 * @method getName
61 * @brief prints value to display
62 * @param value value to display
63 * @return -
64 * @globalvars none
65 * @exception none
66 * @conditions none
67 */
68 virtual void display(const CDat &value) = 0;
41 69
42 private: 70 protected:
43 /* members */ 71 /* members */
72 std::string m_name;
44}; 73};
45 74
46#endif 75#endif