#ifndef __XMLIO_CAttributeMap__ #define __XMLIO_CAttributeMap__ /// xmlioserver headers /// #include "xmlioserver_spl.hpp" #include "attribute.hpp" #include "attribute_template.hpp" #include "exception.hpp" #include "xml_node.hpp" namespace xmlioserver { namespace tree { /// ////////////////////// Déclarations ////////////////////// /// class CAttributeMap : public xios_map { typedef xios_map SuperClassMap; public : /// Tests /// inline bool hasAttribute(const StdString & key) const; /// Accesseurs /// CAttribute * operator[](const StdString & key); /// Mutateurs /// void setAttribute(const StdString & key, CAttribute * const attr); void setAttributes(const xml::THashAttributes & attributes); void setAttributes(const CAttributeMap * const _parent); void clearAllAttributes(void); /// Destructeur /// virtual ~CAttributeMap(void); /// Flux /// // Debug only // // friend StdOStream & operator << (StdOStream & os, const CAttributeMap & attributmap); /// Autre /// virtual StdString toString(void) const; virtual void fromString(const StdString & str); virtual void toBinary (StdOStream & os) const; virtual void fromBinary(StdIStream & is); protected : /// Constructeurs /// CAttributeMap(void); CAttributeMap(const xios_map & umap); // Never implemented. CAttributeMap(const xios_map * const umap); // Not implemented. /// Propriété statique /// static CAttributeMap * Current; }; // class CAttributeMap } // namespace tree } // namespace xmlioserver #endif // __XMLIO_CAttributeMap__