// Copyright (c) 1994 James Clark // See the file COPYING for copying permission. #ifndef Attributed_INCLUDED #define Attributed_INCLUDED 1 #include "Ptr.h" #include "Attribute.h" // This is used for things that have attribute definitions // that notations and elements. #ifdef SP_NAMESPACE namespace SP_NAMESPACE { #endif class SP_API Attributed { public: Attributed() { } ConstPtr attributeDef() const; const AttributeDefinitionList *attributeDefTemp() const; Ptr attributeDef(); void setAttributeDef(const Ptr &); private: Ptr attributeDef_; }; inline ConstPtr Attributed::attributeDef() const { return attributeDef_; } inline const AttributeDefinitionList *Attributed::attributeDefTemp() const { return attributeDef_.pointer(); } inline Ptr Attributed::attributeDef() { return attributeDef_; } inline void Attributed::setAttributeDef(const Ptr &def) { attributeDef_ = def; } #ifdef SP_NAMESPACE } #endif #endif /* not Attributed_INCLUDED */