Changeset 124 for XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp
- Timestamp:
- 10/01/10 11:32:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp
r122 r124 43 43 string getName(void) const {return (T::GetName()); } 44 44 45 constT* getBaseObject(void) const { return (baseObject); }45 T* getBaseObject(void) const { return (baseObject); } 46 46 47 47 virtual T* getReference(void) const { return (NULL); } 48 49 const vector<T*>& getVectRefObject(void) const { return (refObject); } 50 51 bool hasRefObject(void) { return (!refObject.empty()); } 52 53 const T* addRefObject(T* obj) 54 { refObject.push_back (obj); return (obj); } 48 55 49 56 virtual bool hasChild(void) const { return (false); } … … 78 85 // Rien à faire. 79 86 } 87 88 public : /* static */ 80 89 81 90 static T* CreateObject(const string& _id) throw (XMLIOUndefinedValueException) … … 119 128 protected : 120 129 121 ObjectTemplate(void) : AbstractObject(), baseObject(NULL) 130 ObjectTemplate(void) : AbstractObject(), baseObject(NULL), refObject() 122 131 {/* Ne rien faire de plus */} 123 ObjectTemplate(const string& _id) : AbstractObject(_id), baseObject(NULL) 132 ObjectTemplate(const string& _id) : AbstractObject(_id), baseObject(NULL), refObject() 124 133 {/* Ne rien faire de plus */} 125 134 … … 145 154 private : 146 155 T* baseObject; 156 vector<T*> refObject; 147 157 148 158 static string CurrContext;
Note: See TracChangeset
for help on using the changeset viewer.