27 #ifndef __NamedAttribute__ 28 #define __NamedAttribute__ 31 #include "IPMStream.h" 57 { Set(copy);
return *
this; }
61 {
return fName == na.fName &&
62 fValue == na.fValue; }
66 {
return (!(*
this == na)); }
73 virtual void GetValue( uint32 & value )
const { value = fValue; }
74 virtual void ReadWrite(
IPMStream* iPMStream )
77 int32 int32Value = int32(fValue);
79 fValue = uint32(int32Value);
87 { fName = copy.fName; fValue = copy.fValue; }
107 { Set(copy);
return *
this; }
111 if ( fList.size() == list.fList.size() )
113 int listSize = int(fList.size());
114 for (
int i = 0; i < listSize; i++ )
115 if ( fList[i] != list.fList[i] )
130 int32 listSize((int32)fList.size());
131 if ( i >= 0 && i <= listSize )
132 fList.insert( fList.begin() + i, na );
135 void Clear() { fList.clear(); }
137 void RemoveAt( int32 i ) { fList.erase( fList.begin() + i ); }
139 int32 Length() {
return int32(fList.size()); }
140 uint32 GetLength()
const {
return uint32(fList.size()); }
144 int32 listSize((int32)fList.size());
149 for ( int32 i = 0; i < listSize; i++ )
152 na.ReadWrite( iPMStream );
153 fList.push_back( na );
158 for ( std::vector<NamedUint32Attribute>::const_iterator iter = fList.begin(); iter != fList.end(); ++iter )
161 na.ReadWrite( iPMStream );
167 std::vector<NamedUint32Attribute> fList;
172 int listSize = int(copy.fList.size());
173 for (
int i = 0; i < listSize; i++ )
174 fList.push_back( copy.fList[i] );
178 #endif // __NamedUint32AttributeList__