|
| FGPropertyManager (void) |
| Default constructor.
|
|
| FGPropertyManager (FGPropertyNode *_root) |
| Constructor.
|
|
virtual | ~FGPropertyManager (void) |
| Destructor.
|
|
FGPropertyNode * | GetNode (void) const |
|
FGPropertyNode * | GetNode (const std::string &path, bool create=false) |
|
FGPropertyNode * | GetNode (const std::string &relpath, int index, bool create=false) |
|
bool | HasNode (const std::string &path) const |
|
std::string | mkPropertyName (std::string name, bool lowercase) |
| Property-ify a name replaces spaces with '-' and, optionally, makes name all lower case.
|
|
void | Untie (const std::string &name) |
| Untie a property from an external data source.
|
|
void | Untie (SGPropertyNode *property) |
| Untie a property from an external data source.
|
|
void | Unbind (void) |
| Unbind all properties bound by this manager to an external data source.
|
|
template<typename T> |
void | Tie (const std::string &name, T *pointer) |
| Tie a property to an external variable.
|
|
template<typename T> |
void | Tie (const std::string &name, T(*getter)(), void(*setter)(T)=nullptr) |
| Tie a property to a pair of simple functions.
|
|
template<typename T> |
void | Tie (const std::string &name, int index, T(*getter)(int), void(*setter)(int, T)=nullptr) |
| Tie a property to a pair of indexed functions.
|
|
template<class T, class V> |
void | Tie (const std::string &name, T *obj, V(T::*getter)() const, void(T::*setter)(V)=nullptr) |
| Tie a property to a pair of object methods.
|
|
template<class T, class V> |
void | Tie (const std::string &name, T *obj, int index, V(T::*getter)(int) const, void(T::*setter)(int, V)=nullptr) |
| Tie a property to a pair of indexed object methods.
|
|
template<class T> |
simgear::PropertyObject< T > | CreatePropertyObject (const std::string &path) |
|
Definition at line 354 of file FGPropertyManager.h.
template<typename T>
void JSBSim::FGPropertyManager::Tie |
( |
const std::string & | name, |
|
|
int | index, |
|
|
T(* | getter )(int), |
|
|
void(* | setter )(int, T) = nullptr ) |
|
inline |
Tie a property to a pair of indexed functions.
Every time the property value is queried, the getter (if any) will be invoked with the index provided; every time the property value is modified, the setter (if any) will be invoked with the index provided. The getter can be 0 to make the property unreadable, and the setter can be 0 to make the property unmodifiable.
- Parameters
-
name | The property name to tie (full path). |
index | The integer argument to pass to the getter and setter functions. |
getter | The getter function, or 0 if the value is unreadable. |
setter | The setter function, or 0 if the value is unmodifiable. |
Definition at line 503 of file FGPropertyManager.h.
template<class T, class V>
void JSBSim::FGPropertyManager::Tie |
( |
const std::string & | name, |
|
|
T * | obj, |
|
|
int | index, |
|
|
V(T::* | getter )(int) const, |
|
|
void(T::* | setter )(int, V) = nullptr ) |
|
inline |
Tie a property to a pair of indexed object methods.
Every time the property value is queried, the getter (if any) will be invoked with the index provided; every time the property value is modified, the setter (if any) will be invoked with the index provided. The getter can be 0 to make the property unreadable, and the setter can be 0 to make the property unmodifiable.
- Parameters
-
name | The property name to tie (full path). |
obj | The object whose methods should be invoked. |
index | The integer argument to pass to the getter and setter methods. |
getter | The getter method, or 0 if the value is unreadable. |
setter | The setter method, or 0 if the value is unmodifiable. |
Definition at line 580 of file FGPropertyManager.h.
template<class T, class V>
void JSBSim::FGPropertyManager::Tie |
( |
const std::string & | name, |
|
|
T * | obj, |
|
|
V(T::* | getter )() const, |
|
|
void(T::* | setter )(V) = nullptr ) |
|
inline |
Tie a property to a pair of object methods.
Every time the property value is queried, the getter (if any) will be invoked; every time the property value is modified, the setter (if any) will be invoked. The getter can be 0 to make the property unreadable, and the setter can be 0 to make the property unmodifiable.
- Parameters
-
name | The property name to tie (full path). |
obj | The object whose methods should be invoked. |
getter | The object's getter method, or 0 if the value is unreadable. |
setter | The object's setter method, or 0 if the value is unmodifiable. |
Definition at line 542 of file FGPropertyManager.h.
template<typename T>
void JSBSim::FGPropertyManager::Tie |
( |
const std::string & | name, |
|
|
T(* | getter )(), |
|
|
void(* | setter )(T) = nullptr ) |
|
inline |
Tie a property to a pair of simple functions.
Every time the property value is queried, the getter (if any) will be invoked; every time the property value is modified, the setter (if any) will be invoked. The getter can be 0 to make the property unreadable, and the setter can be 0 to make the property unmodifiable.
- Parameters
-
name | The property name to tie (full path). |
getter | The getter function, or 0 if the value is unreadable. |
setter | The setter function, or 0 if the value is unmodifiable. |
Definition at line 467 of file FGPropertyManager.h.