00001 /* 00002 Copyright 1996-2001 00003 Simon Whiteside 00004 00005 * $Id: skAttribute_h-source.html,v 1.2 2001/11/05 19:22:33 sdw Exp $ 00006 */ 00007 #ifndef skATTRIBUTE_H 00008 #define skATTRIBUTE_H 00009 00010 #include "skAlist.h" 00011 #include "skString.h" 00012 00016 class CLASSEXPORT skAttribute 00017 { 00018 public: 00023 skAttribute(const skString& name,const skString& value) 00024 : m_Name(name),m_Value(value){ 00025 } 00029 skString getName() const { 00030 return m_Name; 00031 } 00035 skString getValue() const { 00036 return m_Value; 00037 } 00039 void setValue(const skString& name){ 00040 m_Name=name; 00041 } 00042 private: 00043 skString m_Name; 00044 skString m_Value; 00045 }; 00046 00047 EXTERN_TEMPLATE template class CLASSEXPORT skTAList<skAttribute>; 00048 00052 class CLASSEXPORT skAttributeList : public skTAList<skAttribute>{ 00053 }; 00054 CLASSEXPORT ostream& operator<<(ostream& out,const skAttribute& a); 00055 #endif