Serialization

Overview

serialization.

Function List

ohObjectLoad ()
ohObjectLoadString ()
ohObjectSave ()
ohObjectSaveString ()

Function Documentation

ohObjectLoad

vector<string> returnValue
ohObjectLoad(
string Directory
string Pattern
bool Recurse
bool Overwrite
any Trigger)
Description:

Deserialize list of objects from given file, return IDs of deserialized objects.

Supported Platforms:

Excel, C++, Calc

Parameters
DirectoryDirectory from which objects are to be deserialized.
PatternName of XML file from which objects are to be deserialized, or a pattern in UNIX format (wildcard is .*). Default value = .*\.xml.
RecurseRecurse subdirectories of Directory when searching for filenames matching Pattern. Default value = false.
OverwriteOverwrite any existing Object that has the same ID as one being loaded. Default value = false.
Triggerdependency tracking trigger

ohObjectLoadString

vector<string> returnValue
ohObjectLoadString(
string Xml
bool Overwrite
any Trigger)
Description:

Deserialize list of objects from given string, return IDs of deserialized objects.

Supported Platforms:

Excel, C++

Parameters
XmlXML string from which objects are to be deserialized.
OverwriteOverwrite any existing Object that has the same ID as one being loaded. Default value = false.
Triggerdependency tracking trigger

ohObjectSave

long returnValue
ohObjectSave(
vector<string> ObjectList
string Filename
bool Overwrite
bool IncludeGroups
any Trigger)
Description:

Serialize list of objects to given path, return count of objects serialized.

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectListlist of IDs of objects to be serialized.
Filenamefile name to which objects are to be serialized.
Overwriteoverwrite the output file if it exists. Default value = false.
IncludeGroupsinclude Groups in the serialisation. Default value = true.
Triggerdependency tracking trigger

ohObjectSaveString

string returnValue
ohObjectSaveString(
vector<string> ObjectList
bool Overwrite
any Trigger)
Description:

Serialize list of objects to given path, return resulting XML.

Supported Platforms:

Excel, C++

Parameters
ObjectListlist of IDs of objects to be serialized.
Overwriteoverwrite the output file if it exists. Default value = false.
Triggerdependency tracking trigger