EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
handles the Storage of Object More...
#include <eoStorageManager.h>
Public Member Functions | |
eoStorageManager () | |
eoStorageManager (eoArchive &archive) | |
eoReturn | addObject (const char *name, eoISerialize *object) |
Adds an eoISerialize Object to the storageManager. More... | |
eoReturn | RemoveObject (const char *name) |
Removes an ISerialize Object from the StorageManager. More... | |
eoReturn | Load (const char *strBuf) |
eoReturn | Save (const char *strBuf) |
handles the Storage of Object
Manages for you the saving or loading of ISerialize objects, which you can add via addObject or loadObject
eoStorageManager::eoStorageManager | ( | ) |
The standard constructor uses the eoArchiveTXT
eoStorageManager::eoStorageManager | ( | eoArchive & | archive | ) |
The Storage Manager Constructor
archive | eoArchive Format to save to. |
eoReturn eoStorageManager::addObject | ( | const char * | name, |
eoISerialize * | object | ||
) |
Adds an eoISerialize Object to the storageManager.
all Objects which have been added to the storageManager, will be handled in the save and load functionality of the Storage Manager.
name | The object identifier used in your Application to load/save the ISerialize object (maximal 32 characters) |
object | an ISerialize object which you want to save or load |
eoReturn eoStorageManager::Load | ( | const char * | strBuf | ) |
Loads from the specified stream allObjects
strBuf |
eoReturn eoStorageManager::RemoveObject | ( | const char * | name | ) |
Removes an ISerialize Object from the StorageManager.
The eoISerialize object will be removed from the StorageManager handling
name | The object identifier used in your Application to load/save the ISerialize object (maximal 32 characters) |
eoReturn eoStorageManager::Save | ( | const char * | strBuf | ) |
Saves your object to the specified Buffer
strBuf | the Buffer to save to, using the choosen Archive type |