|
| StateVector (const std::string &stateid, const std::vector< T > &default_value) |
| CONSTRUCTOR.
|
|
| StateVector (const std::string &stateid) |
|
virtual | ~StateVector () |
| DESTRUCTOR.
|
|
virtual std::string | export_to_string () const |
| Convert the contents of the State into a string.
|
|
virtual bool | import_from_string (const std::string &str, ActionSource source=ActionSource::NONE_E) |
| Set the State from a string.
|
|
const std::vector< T > & | get () const |
| Get the value of the state variable.
|
|
virtual size_t | size () const |
| Return the number of elements in the vector.
|
|
bool | set (const std::vector< T > &value, ActionSource source=ActionSource::NONE_E) |
|
bool | set_at (size_t index, const T &value, ActionSource source=ActionSource::NONE_E) |
|
bool | add (const T &value, ActionSource source=ActionSource::NONE_E) |
|
bool | remove (const T &value, ActionSource source=ActionSource::NONE_E) |
|
virtual void | clear (ActionSource source=ActionSource::NONE_E) |
| Clear the vector.
|
|
| StateVectorBase (const std::string &stateid) |
|
| StateBase (const std::string &stateid) |
|
virtual bool | import_from_string (const std::string &str, Core::ActionSource source=Core::ActionSource::NONE_E)=0 |
| Set the State from a string.
|
|
void | set_is_project_data (bool is_project_data) |
| Set whether the data is part of the project data.
|
|
void | set_locked (bool locked) |
|
bool | get_locked () const |
| Query whether the variable has been designated as locked.
|
|
int | get_session_priority () const |
| Get the priority in which loading sets the states.
|
|
void | set_session_priority (int priority) |
| By default the priority is set to DEAFULT_LOAD_E.
|
|
std::string | get_stateid () const |
| Get the unique id assigned to the state variable.
|
|
bool | is_project_data () const |
| Whether the data is tagged as project data that is saved in a session.
|
|
|
virtual void | export_to_variant (Variant &variant) const |
| Export the state data to a variant parameter.
|
|
virtual bool | import_from_variant (Variant &variant, Core::ActionSource source=Core::ActionSource::NONE_E) |
| Import the state data from a variant parameter.
|
|
virtual bool | add (Variant &variant, Core::ActionSource source=Core::ActionSource::NONE_E) |
|
virtual bool | set_at (size_t index, Variant &variant, ActionSource source=ActionSource::NONE_E) |
| Set a value at a certain index.
|
|
virtual bool | remove (Variant &variant, Core::ActionSource source=Core::ActionSource::NONE_E) |
|
virtual bool | validate_element_variant (Variant &variant, std::string &error) |
| validate whether the variant data is of the right type
|
|
virtual bool | validate_variant (Variant &variant, std::string &error) |
|
virtual bool | add (Variant &variant, ActionSource source=ActionSource::NONE_E)=0 |
| Add variant data to the state vector.
|
|
virtual bool | remove (Variant &variant, ActionSource source=ActionSource::NONE_E)=0 |
| Remove variant data from the vector.
|
|
void | enable_signals (bool signals_enabled) |
|
bool | signals_enabled () |
| Check whether signals are enabled.
|
|
void | set_initializing (bool initializing) |
|
bool | get_initializing () const |
| Query whether the state variable and its parent are still being initialized.
|
|
virtual void | invalidate () |
|
template<class T>
class Core::StateVector< T >
This class is a specification of State that is used to hold a single unbound instance of a value.