Changeset 104 for XMLIO_V2/dev/dev_rv/src/XMLIO/context.hpp
- Timestamp:
- 06/07/10 18:34:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/context.hpp
r98 r104 9 9 public: 10 10 11 Context(void) : ObjectTemplate<Context>() 11 Context(void) : ObjectTemplate<Context>(), fieldDef(NULL) 12 12 {/* Ne rien faire de plus */} 13 Context(const string& _id) : ObjectTemplate<Context>(_id) 13 Context(const string& _id) : ObjectTemplate<Context>(_id), fieldDef(NULL) 14 14 {/* Ne rien faire de plus */} 15 15 … … 20 20 FieldGroup::SetContext(id); 21 21 Field::SetContext(id); 22 } 23 24 friend ostream& operator<< (ostream& out, const Context& c) 25 { 26 out << "<" << c.getName()<< " id=\"" << c.getId() << "\">"; 27 if(c.fieldDef != NULL) out << std::endl << *(FieldGroup*)c.fieldDef << std::endl; 28 out << "</" << c.getName()<< ">"; 29 return (out); 30 } 31 32 void resolveDescInheritance(void) 33 { 34 // Résolution des héritages descendants pour chacun des groupes de définitions. 35 fieldDef->resolveDescInheritance(); 22 36 } 23 37 … … 80 94 } 81 95 82 virtualconst char* getName(void) const {return ("Context"); }96 const char* getName(void) const {return ("Context"); } 83 97 84 98 FieldDefinition* getFieldDefinition(void) { return (this->fieldDef); } 85 99 86 100 ~Context() 87 { delete fieldDef; } 88 89 protected: 101 { delete fieldDef; } 102 90 103 91 104 private:
Note: See TracChangeset
for help on using the changeset viewer.