MeVisLabToolboxReference
|
Allows to load ml::base-derived objects from file. More...
#include <mlLoadBase.h>
Public Types | |
enum | AutoUpdateMode { AutoUpdateModeDoNothing = 0, AutoUpdateModeAutoClear, AutoUpdateModeAutoUpdate, AutoUpdateModeCount } |
auto update mode enum More... | |
Public Member Functions | |
LoadBase () | |
constructor: | |
~LoadBase () | |
destructor: | |
virtual bool | loadObject (void) |
loads a new object | |
virtual void | deleteObject (void) |
deletes the current object | |
Public Attributes | |
EnumField * | _fldAutoUpdateMode |
Auto-load mode. Use anything other than Auto-Delete with care. | |
NotifyField * | _fldDeleteButton |
Delete loaded object. | |
NotifyField * | _fldLoadButton |
Load object. | |
StringField * | _fldNodeName |
Name of the root node of the object when storing/restoring. | |
StringField * | _fldLoadFileName |
Name of the file the object is to be restored from. | |
StringField * | _fldLoadDirName |
Name of the directory the file is to be restored from. | |
BoolField * | _fldUseLoadDir |
Indicates whether the load dir field is used. | |
StringField * | _fldFileStatus |
Field for status messages concerning file I/O. | |
EnumField * | _fldLoadMode |
Specifies the file format for the object. | |
BoolField * | _fldUpToDate |
Indicates whether the current output corresponds to the filename. | |
BaseField * | _fldBaseOutput |
Output connection. | |
Protected Member Functions | |
virtual void | handleNotification (Field *field) |
Handle field notifications. | |
virtual void | activateAttachments () |
resets fldUpToDate, calls handleNotification once after the module is loaded on the network and all field values are assigned. | |
Protected Attributes | |
Base * | _outputObject |
object behind _fldBaseOutput |
Allows to load ml::base-derived objects from file.
class LoadBase
Definition at line 22 of file mlLoadBase.h.
auto update mode enum
AutoUpdateModeDoNothing | |
AutoUpdateModeAutoClear | |
AutoUpdateModeAutoUpdate | |
AutoUpdateModeCount |
Definition at line 27 of file mlLoadBase.h.
ml::LoadBase::LoadBase | ( | ) |
constructor:
ml::LoadBase::~LoadBase | ( | ) |
destructor:
virtual void ml::LoadBase::activateAttachments | ( | ) | [protected, virtual] |
resets fldUpToDate, calls handleNotification once after the module is loaded on the network and all field values are assigned.
Reimplemented from ml::FieldContainer.
virtual void ml::LoadBase::deleteObject | ( | void | ) | [virtual] |
deletes the current object
virtual void ml::LoadBase::handleNotification | ( | Field * | field | ) | [protected, virtual] |
Handle field notifications.
Reimplemented from ml::Module.
virtual bool ml::LoadBase::loadObject | ( | void | ) | [virtual] |
loads a new object
Auto-load mode. Use anything other than Auto-Delete with care.
Definition at line 46 of file mlLoadBase.h.
Output connection.
Definition at line 58 of file mlLoadBase.h.
Delete loaded object.
Definition at line 47 of file mlLoadBase.h.
Field for status messages concerning file I/O.
Definition at line 53 of file mlLoadBase.h.
Load object.
Definition at line 48 of file mlLoadBase.h.
Name of the directory the file is to be restored from.
Definition at line 51 of file mlLoadBase.h.
Name of the file the object is to be restored from.
Definition at line 50 of file mlLoadBase.h.
Specifies the file format for the object.
Definition at line 54 of file mlLoadBase.h.
Name of the root node of the object when storing/restoring.
Definition at line 49 of file mlLoadBase.h.
Indicates whether the current output corresponds to the filename.
Definition at line 55 of file mlLoadBase.h.
Indicates whether the load dir field is used.
Definition at line 52 of file mlLoadBase.h.
Base* ml::LoadBase::_outputObject [protected] |
object behind _fldBaseOutput
Definition at line 70 of file mlLoadBase.h.