Changeset 95 for XMLIO_V2/dev/dev_rv/field.hpp
- Timestamp:
- 06/04/10 12:02:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/field.hpp
r91 r95 3 3 4 4 using XMLIOSERVER::XML::XMLNode; 5 using XMLIOSERVER::XML::THashAttributes; 5 6 6 7 namespace XMLIOSERVER 7 8 { 8 class Field : public ObjectTemplate<Field> 9 class Field : public ObjectTemplate<Field>, public FieldAttribut 9 10 { 10 11 public: 11 Field(void) : ObjectTemplate<Field>() 12 Field(void) : ObjectTemplate<Field>(), FieldAttribut() 12 13 {/* Ne rien faire de plus */} 13 Field(const string& _id) : ObjectTemplate<Field>(_id) 14 Field(const string& _id) : ObjectTemplate<Field>(_id), FieldAttribut() 14 15 {/* Ne rien faire de plus */} 16 17 void setAttributes(const THashAttributes& attr) 18 { 19 for (THashAttributes::ConstIterator it = attr.begin(); it != attr.end(); it++) 20 if ((*it).first.compare(string("id"))) // Non prise en compte de l'identifiant lors de l'affectation des attributs. 21 this->setSAttribut((*it).first, (*it).second); 22 23 return; 24 } 15 25 16 26 virtual const char* getName(void) const {return ("Field"); } … … 18 28 void parse (XMLNode& _node) 19 29 { 30 string name = _node.getElementName(); 31 THashAttributes attributes; 32 20 33 /// PARSING GESTION DES ATTRIBUTS /// 21 // A compléter. 34 _node.getAttributes(attributes); 35 this->setAttributes(attributes); 36 attributes.clear(); 22 37 23 38 /// PARSING POUR GESION DES ENFANTS
Note: See TracChangeset
for help on using the changeset viewer.