MeVisLabToolboxReference
ml::SaveBase Class Reference

saves an ml::base-derived object to a file class SaveBase More...

#include <mlSaveBase.h>

Inheritance diagram for ml::SaveBase:
ml::Engine ml::Module ml::FieldContainer ml::Base

List of all members.

Public Member Functions

 SaveBase ()
 constructor
virtual bool saveObject (void)
 saves the input object to a file

Public Attributes

NotifyField_fldSaveButton
 Save list.
StringField_fldNodeName
 Name of the root node of the list when storing/restoring.
StringField_fldSaveFileName
 Name of the file the list is to be stored in.
StringField_fldFileStatus
 Field for status messages concerning file I/O.
StringField_fldSaveDirName
 Name of the directory the file is to be stored in.
BoolField_fldUseSaveDir
 Indicates whether the save dir field is used.
EnumField_fldSaveMode
 Specifies the storage format of the list.
BoolField_fldAutoSave
 Auto-saves the object each time the input is touched. Use with care.
BoolField_fldUpToDate
 If true, the last saved object file is still consistent with the current object.
BoolField_fldAllowOverwrite
 Indicates whether the specified file is overwritten if it already exists.
BaseField_fldBaseInput
 Input connection.

Protected Member Functions

virtual void handleNotification (Field *field)
 Handle field notifications.
void _updateNodeName ()
 Reads a default node name from the input object (if present).

Detailed Description

saves an ml::base-derived object to a file class SaveBase

Definition at line 22 of file mlSaveBase.h.


Constructor & Destructor Documentation

ml::SaveBase::SaveBase ( )

constructor


Member Function Documentation

void ml::SaveBase::_updateNodeName ( ) [protected]

Reads a default node name from the input object (if present).

virtual void ml::SaveBase::handleNotification ( Field field) [protected, virtual]

Handle field notifications.

Reimplemented from ml::Module.

virtual bool ml::SaveBase::saveObject ( void  ) [virtual]

saves the input object to a file


Member Data Documentation

Indicates whether the specified file is overwritten if it already exists.

Definition at line 41 of file mlSaveBase.h.

Auto-saves the object each time the input is touched. Use with care.

Definition at line 39 of file mlSaveBase.h.

Input connection.

Definition at line 43 of file mlSaveBase.h.

Field for status messages concerning file I/O.

Definition at line 35 of file mlSaveBase.h.

Name of the root node of the list when storing/restoring.

Definition at line 33 of file mlSaveBase.h.

Save list.

Definition at line 32 of file mlSaveBase.h.

Name of the directory the file is to be stored in.

Definition at line 36 of file mlSaveBase.h.

Name of the file the list is to be stored in.

Definition at line 34 of file mlSaveBase.h.

Specifies the storage format of the list.

See also:
IOHandler::IO_MODE

Definition at line 38 of file mlSaveBase.h.

If true, the last saved object file is still consistent with the current object.

Definition at line 40 of file mlSaveBase.h.

Indicates whether the save dir field is used.

Definition at line 37 of file mlSaveBase.h.


The documentation for this class was generated from the following file: