public:
+ /**
+ * Property value types.
+ *
+ * Right now, this duplicates SGValue::Type, but SGValue will be
+ * disappearing soon.
+ */
+ enum Type {
+ BOOL,
+ INT,
+ LONG,
+ FLOAT,
+ DOUBLE,
+ STRING,
+ UNKNOWN
+ };
+
SGPropertyNode ();
virtual ~SGPropertyNode ();
const SGPropertyNode * getNode (const string &relative_path) const;
// Value-related stuff.
- SGValue::Type getType () const;
+ Type getType () const;
bool getBoolValue () const;
int getIntValue () const;
bool untie ();
// Values from paths.
- bool hasValue (const string &relative_path) const;
- SGValue * getValue (const string &relative_path, bool create = false);
- const SGValue * getValue (const string &relative_path) const;
-
- SGValue::Type getType (const string &relative_path) const;
+ Type getType (const string &relative_path) const;
bool getBoolValue (const string &relative_path,
bool defaultValue = false) const;
private:
+ bool hasValue (const string &relative_path) const;
+ SGValue * getValue (const string &relative_path, bool create = false);
+ const SGValue * getValue (const string &relative_path) const;
+
SGPropertyNode (const SGPropertyNode &node) {}
SGValue * _value;