Changeset 2433 for source/ariba/utility/system
- Timestamp:
- Feb 17, 2009, 12:04:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/system/SystemEventType.h
r2432 r2433 40 40 #define SYSTEMEVENTTYPE_H_ 41 41 42 #include<iostream> 43 #include<vector> 44 #include<boost/cstdint.hpp> 42 #include <iostream> 43 #include <vector> 44 #include <string> 45 #include <boost/cstdint.hpp> 46 #include <boost/foreach.hpp> 45 47 48 using std::string; 46 49 using std::vector; 47 50 using std::ostream; … … 61 64 class Descriptor { 62 65 public: 63 const char*description;66 string description; 64 67 eventid_t parent; 65 68 66 Descriptor( const char*_d, eventid_t _p = 0) :69 Descriptor(string _d, eventid_t _p = 0) : 67 70 description(_d), parent(_p) { 71 } 72 73 Descriptor(const Descriptor& rh) 74 : description( rh.description ), parent( rh.parent ) { 75 } 76 77 ~Descriptor() { 68 78 } 69 79 }; … … 75 85 76 86 public: 77 inline SystemEventType( const char*description,87 inline SystemEventType(string description, 78 88 const SystemEventType parent = DEFAULT) { 79 89 if (ids.size() == 0) ids.push_back(Descriptor( … … 94 104 95 105 inline ~SystemEventType() { 96 97 106 } 98 107 99 inline const char*getDescription() const {108 inline string getDescription() const { 100 109 return ids[id].description; 101 110 } … … 147 156 148 157 inline bool isDefault() { 149 return ( id == 0);158 return ( id == 0 ); 150 159 } 151 160
Note:
See TracChangeset
for help on using the changeset viewer.