7 #ifndef BALL_DATATYPE_OPTIONS_H
8 #define BALL_DATATYPE_OPTIONS_H
14 #ifndef BALL_DATATYPE_STRING_H
18 #ifndef BALL_DATATYPE_STRINGHASHMAP_H
22 #ifndef BALL_MATHS_VECTOR3_H
26 #ifndef BALL_CONCEPT_PERSISTENTOBJECT_H
59 static const
Size MAX_ENTRY_LENGTH;
90 const Options& operator = (const Options& options);
106 bool isInteger(const
String& key) const;
115 bool isBool(const
String& key) const;
122 bool isReal(const
String& key) const;
132 bool isVector(const
String& key) const;
138 bool isSet(const
String& key) const;
147 void setName(const
String& name);
170 bool getBool(const
String& key) const;
180 double getReal(const
String& key) const;
204 long getInteger(const
String& key) const;
221 void setReal(const
String& key, const
double value);
241 void setInteger(const
String& key, const
long value);
250 void setBool(const
String& key, const
bool value);
269 long setDefaultInteger(const
String& key, const
long value);
279 double setDefaultReal(const
String& key, const
double value);
289 bool setDefaultBool(const
String& key, const
bool value);
309 bool readOptionFile(const
String& filename);
322 bool writeOptionFile(const
String& filename) const;
340 bool operator == (const Options& option) const;
343 bool operator != (const Options& option) const;
353 virtual
void dump (std::ostream& s = std::cout,
Size depth = 0) const;
365 #endif // BALL_DATATYPE_OPTIONS_H