44 #ifndef __ATTRIBUTE_SET_H__
45 #define __ATTRIBUTE_SET_H__
111 size_t addBoolAttribute(
const std::string & name,
bool required,
bool defValue=
false );
124 size_t addIntAttribute(
const std::string & name,
bool required,
int defValue=0 );
137 size_t addSizeTAttribute(
const std::string & name,
bool required,
size_t defValue=0 );
150 size_t addFloatAttribute(
const std::string & name,
bool required,
float defValue=0 );
164 size_t addFloatDistAttribute(
const std::string & prefix,
bool required,
float defValue,
float scale );
177 size_t addVec2DDistAttribute(
bool required,
const Vector2 & defValue,
float scale=1.f );
190 size_t addIntDistAttribute(
const std::string & prefix,
bool required,
int defValue=0 );
203 size_t addStringAttribute(
const std::string & name,
bool required,
const std::string & defValue=
"" );
216 bool extract( TiXmlElement * node );
229 int getInt(
size_t propID );
242 size_t getSizeT(
size_t propID );
255 bool getBool(
size_t propID );
268 float getFloat(
size_t propID );
281 std::string getString(
size_t propID );
329 bool isUniqueName(
const std::string & name );
337 #endif // __ATTRIBUTE_SET_H__
A set of attributes.
Definition: AttributeSet.h:88
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Generic abstract class which generates a scalar float value.
Definition: RandGenerator.h:99
Sets up the proper compiler directives for platform and dll export/import.
std::vector< Attribute * > _attrs
The attributes in the set.
Definition: AttributeSet.h:334
Generic abstract class which generates a 2D vector float values.
Definition: RandGenerator.h:706
The namespace for math primitives for simulation and visualization.
Definition of a vector in R2.
Generic abstract class which generates a scalar integer value.
Definition: RandGenerator.h:486