23 #include "attribute.h"
24 #include "attribute-accessor-helper.h"
45 bool GetAccessor (T &v)
const;
56 bool EnumValue::GetAccessor (T &v)
const
67 void AddDefault (
int v, std::string name);
68 void Add (
int v, std::string name);
79 typedef std::list<std::pair<int,std::string> > ValueSet;
83 template <
typename T1>
86 template <
typename T1,
typename T2>
90 int v2 = 0, std::string n2 =
"",
91 int v3 = 0, std::string n3 =
"",
92 int v4 = 0, std::string n4 =
"",
93 int v5 = 0, std::string n5 =
"",
94 int v6 = 0, std::string n6 =
"",
95 int v7 = 0, std::string n7 =
"",
96 int v8 = 0, std::string n8 =
"",
97 int v9 = 0, std::string n9 =
"",
98 int v10 = 0, std::string n10 =
"",
99 int v11 = 0, std::string n11 =
"",
100 int v12 = 0, std::string n12 =
"",
101 int v13 = 0, std::string n13 =
"",
102 int v14 = 0, std::string n14 =
"",
103 int v15 = 0, std::string n15 =
"",
104 int v16 = 0, std::string n16 =
"",
105 int v17 = 0, std::string n17 =
"",
106 int v18 = 0, std::string n18 =
"",
107 int v19 = 0, std::string n19 =
"",
108 int v20 = 0, std::string n20 =
"",
109 int v21 = 0, std::string n21 =
"",
110 int v22 = 0, std::string n22 =
"");
117 template <
typename T1>
118 Ptr<const AttributeAccessor> MakeEnumAccessor (T1 a1)
120 return MakeAccessorHelper<EnumValue> (a1);
123 template <
typename T1,
typename T2>
124 Ptr<const AttributeAccessor> MakeEnumAccessor (T1 a1, T2 a2)
126 return MakeAccessorHelper<EnumValue> (a1, a2);
Represent the type of an attribute.
smart pointer class similar to boost::intrusive_ptr
Hold a value for an Attribute.
virtual std::string SerializeToString(Ptr< const AttributeChecker > checker) const
virtual Ptr< AttributeValue > Create(void) const
hold variables of type 'enum'
virtual std::string GetUnderlyingTypeInformation(void) const
virtual Ptr< AttributeValue > Copy(void) const
virtual bool DeserializeFromString(std::string value, Ptr< const AttributeChecker > checker)
virtual bool HasUnderlyingTypeInformation(void) const
virtual std::string GetValueTypeName(void) const
virtual bool Check(const AttributeValue &value) const