00001 #ifndef XDKWRL_MFCOLOR_H
00002 #define XDKWRL_MFCOLOR_H
00003
00004 #include <xdkwrl/fieldtypes/sfcolor.h>
00005 #include <deque>
00006 #include <algorithm>
00007 #include <iterator>
00008
00009 namespace wrl
00010 {
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 class MFColor : public std::deque<SFColor>
00033 {
00034 public:
00035 static inline const char* typeName();
00036 static inline FieldTypeId typeId();
00037 friend std::ostream& operator<<(std::ostream& s,const MFColor& f);
00038 };
00039
00040
00041
00042 inline const char*
00043 MFColor::typeName()
00044 {
00045 return "MFColor";
00046 }
00047 inline FieldTypeId
00048 MFColor::typeId()
00049 {
00050 return mfColor;
00051 }
00052 inline std::ostream& operator<<(std::ostream& s,const MFColor& f)
00053 {
00054 s<<'[';
00055 std::copy(f.begin(),f.end(),std::ostream_iterator<SFColor>(s," "));
00056 return s<<']';
00057 }
00058 };
00059
00060 #endif // XDKWRL_MFCOLOR_H