|
OpenASIP 2.2
|
#include <OSEdOptions.hh>


Public Member Functions | |
| OSEdOptions () | |
| virtual | ~OSEdOptions () |
| std::string | editor () const |
| void | setEditor (const std::string &editor) |
| virtual void | loadState (const ObjectState *state) |
| ObjectState * | saveState () const |
Public Member Functions inherited from Serializable | |
| virtual | ~Serializable () |
Private Member Functions | |
| OSEdOptions (const OSEdOptions &) | |
| Copying not allowed. | |
| OSEdOptions & | operator= (const OSEdOptions &) |
| Assignment not allowed. | |
Private Attributes | |
| std::string | editor_ |
| Editor used to edit operation behavior files. | |
Class that represents the OSEd options.
Options are stored in XML file.
Definition at line 46 of file OSEdOptions.hh.
| OSEdOptions::OSEdOptions | ( | ) |
Constructor.
Definition at line 44 of file OSEdOptions.cc.
|
virtual |
|
private |
Copying not allowed.
| string OSEdOptions::editor | ( | ) | const |
Returns the editor.
Definition at line 59 of file OSEdOptions.cc.
References editor_.
Referenced by saveState(), and setEditor().
|
virtual |
Loads the state from the object tree.
| state | The to be loaded. |
Implements Serializable.
Definition at line 79 of file OSEdOptions.cc.
References ObjectState::child(), ObjectState::childCount(), editor_, Exception::errorMessage(), ObjectState::name(), OSED_EDITOR, and ObjectState::stringValue().
Referenced by OSEd::OnInit().

|
private |
Assignment not allowed.
|
virtual |
Saves the state of the options in ObjectState tree.
Implements Serializable.
Definition at line 100 of file OSEdOptions.cc.
References ObjectState::addChild(), editor(), editor_, OSED_CONF, and OSED_EDITOR.
Referenced by OSEd::createDefaultOptions().

| void OSEdOptions::setEditor | ( | const std::string & | editor | ) |
Sets the editor.
| editor. | Editor to be set. |
Definition at line 69 of file OSEdOptions.cc.
References editor(), and editor_.
Referenced by OSEd::createDefaultOptions().

|
private |
Editor used to edit operation behavior files.
Definition at line 63 of file OSEdOptions.hh.
Referenced by editor(), loadState(), saveState(), and setEditor().