#ifndef __FIELD_GROUP__ #define __FIELD_GROUP__ namespace XMLIOSERVER { class FieldGroup : public GroupTemplate, public FieldAttribut { public: FieldGroup(void) : GroupTemplate(), FieldAttribut() {/* Ne rien faire de plus */} FieldGroup(const string& _id) : GroupTemplate(_id), FieldAttribut() {/* Ne rien faire de plus */} void setAttributes(const THashAttributes& attr) { for (THashAttributes::ConstIterator it = attr.begin(); it != attr.end(); it++) if ((*it).first.compare(string("id"))) // Non prise en compte de l'identifiant lors de l'affectation des attributs. this->setSAttribut((*it).first, (*it).second); return; } virtual const char* getName(void) const {return ("FieldGroup"); } void parse (XMLNode& _node, bool isFieldDef = false) { string name = _node.getElementName(); THashAttributes attributes; std::cout << "Traitement de " << name << std::endl; /// PARSING GESTION DES ATTRIBUTS /// _node.getAttributes(attributes); this->setAttributes(attributes); attributes.clear(); /// PARSING POUR GESION DES ENFANTS // A compléter. return; } ~FieldGroup(void) {/* Ne rien faire de plus */} }; // class FieldGroup typedef FieldGroup FieldDefinition ; }; // namespace XMLIOSERVER #endif // __FIELD_GROUP__