#include <cel_datastore.h>

Public Member Functions | |
| virtual AutoPtr< DataStore > | addDataStore (const String &inName, UChar4 pathSep= '\0')=0 |
| virtual void | set (const String &inName, Serializable *inSerializable, UChar4 pathSep= '\0')=0 |
| template<typename T> | |
| void | setT (const String &inName, const T &inValue, UChar4 pathSep= '\0') |
| virtual size_t | getSize () const =0 |
| virtual String | getName (size_t inIndex) const =0 |
| virtual AutoPtr< Serializable > | at (size_t inIndex)=0 |
| virtual AutoPtr< const Serializable > | at (size_t inIndex) const =0 |
| template<class T> | |
| AutoPtr< T > | at (size_t inIndex) |
| template<class T> | |
| AutoPtr< const T > | at (size_t inIndex) const |
| virtual AutoPtr< Serializable > | get (const String &inName, UChar4 pathSep= '\0')=0 |
| virtual AutoPtr< const Serializable > | get (const String &inName, UChar4 pathSep= '\0') const =0 |
| template<class T> | |
| AutoPtr< T > | get (const String &inName, UChar4 pathSep= '\0') |
| template<class T> | |
| AutoPtr< const T > | get (const String &inName, UChar4 pathSep= '\0') const |
| virtual void | unlink (const String &inName, UChar4 pathSep= '\0')=0 |
| void | setProperty_U64 (const String &inName, uint64_t v, UChar4 pathSep= '\0') |
| void | setProperty_I64 (const String &inName, int64_t v, UChar4 pathSep= '\0') |
| void | setProperty_U32 (const String &inName, u32 v, UChar4 pathSep= '\0') |
| void | setProperty_I32 (const String &inName, i32 v, UChar4 pathSep= '\0') |
| void | setProperty_Double (const String &inName, double v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, size_t v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, const char *v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, const utf8s &v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, const String &v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, const Time &v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, const TimeSpan &v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, const Guid &v, UChar4 pathSep= '\0') |
| void | setProperty (const String &inName, Serializable *inSerializable, UChar4 pathSep= '\0') |
| AutoPtr< DataStore > | getAsDataStore (const String &inName, UChar4 pathSep= '\0') |
| AutoPtr< const DataStore > | getAsDataStore (const String &inName, UChar4 pathSep= '\0') const |
| AutoPtr< BasicDataArray > | getAsDataArray (const String &inName, UChar4 pathSep= '\0') |
| AutoPtr< const BasicDataArray > | getAsDataArray (const String &inName, UChar4 pathSep= '\0') const |
| ssize_t | getAsInteger (const String &inName, UChar4 pathSep= '\0') const |
| size_t | getAsUInteger (const String &inName, UChar4 pathSep= '\0') const |
| int64_t | getAsInteger64 (const String &inName, UChar4 pathSep= '\0') const |
| uint64_t | getAsUInteger64 (const String &inName, UChar4 pathSep= '\0') const |
| double | getAsDouble (const String &inName, UChar4 pathSep= '\0') const |
| String | getAsString (const String &inName, UChar4 pathSep= '\0') const |
| Time | getAsTime (const String &inName, UChar4 pathSep= '\0') const |
| TimeSpan | getAsTimeSpan (const String &inName, UChar4 pathSep= '\0') const |
| Guid | getAsGUID (const String &inName, UChar4 pathSep= '\0') const |
| bool | doesExist (const String &inName, UChar4 pathSep= '\0') const |
| String | getClassOf (const String &inName, UChar4 pathSep= '\0') const |
| const Guid & | getClassIdOf (const String &inName, UChar4 pathSep= '\0') const |
| virtual void | instructNoChecksum ()=0 |
| virtual AutoPtr< DataStore > | duplicateDataStore ()=0 |
Static Public Member Functions | |
| static AutoPtr< DataStore > | create () |
| static AutoPtr< DataStore > | create (Stream *inStream) |
| static AutoPtr< Serializable > | deserialize (Stream *inStream, size_t inLevel=0, Endian inEndian=endianBig) |
Definition at line 31 of file cel_datastore.h.
| virtual AutoPtr<DataStore> Celartem::DataStore::addDataStore | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | [pure virtual] |
| virtual void Celartem::DataStore::set | ( | const String & | inName, | |
| Serializable * | inSerializable, | |||
| UChar4 | pathSep = '\0' | |||
| ) | [pure virtual] |
Add child object instance by the specified name. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| inSerializable | An object to add. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setT | ( | const String & | inName, | |
| const T & | inValue, | |||
| UChar4 | pathSep = '\0' | |||
| ) | [inline] |
Add child object instance by the specified name. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| inValue | An object to add. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
Definition at line 79 of file cel_datastore.h.
| virtual size_t Celartem::DataStore::getSize | ( | ) | const [pure virtual] |
This method returns the number of Serializable instance in this DataStore as direct children.
| virtual String Celartem::DataStore::getName | ( | size_t | inIndex | ) | const [pure virtual] |
This method gets the name of the object instance by index.
| inIndex | Index of the object. |
| virtual AutoPtr<Serializable> Celartem::DataStore::at | ( | size_t | inIndex | ) | [pure virtual] |
This method gets the object instance by index.
| inIndex | Index of the object. |
Referenced by at().
| virtual AutoPtr<const Serializable> Celartem::DataStore::at | ( | size_t | inIndex | ) | const [pure virtual] |
This method gets the object instance by index. (const version)
| inIndex | Index of the object. |
| AutoPtr<T> Celartem::DataStore::at | ( | size_t | inIndex | ) | [inline] |
This method gets the object instance by index.
| inIndex | Index of the object. |
AutoPtr<DataArray> da = ds->at<DataArray>(index);
Definition at line 134 of file cel_datastore.h.
| AutoPtr<const T> Celartem::DataStore::at | ( | size_t | inIndex | ) | const [inline] |
This method gets the object instance by index. (const version)
| inIndex | Index of the object. |
AutoPtr<DataArray> da = ds->at<DataArray>(index);
Definition at line 155 of file cel_datastore.h.
| virtual AutoPtr<Serializable> Celartem::DataStore::get | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | [pure virtual] |
This method gets the object instance by name.
| inName | Name or path of the object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| virtual AutoPtr<const Serializable> Celartem::DataStore::get | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | const [pure virtual] |
This method gets the object instance by name. (const version)
| inName | Name or path of the object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| AutoPtr<T> Celartem::DataStore::get | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | [inline] |
This method gets the object instance by name.
| inName | Name or path of the object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
AutoPtr<DataArray> da = ds->get<DataArray>("myDataArray");
Definition at line 205 of file cel_datastore.h.
| AutoPtr<const T> Celartem::DataStore::get | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | const [inline] |
This method gets the object instance by name. (const version)
| inName | Name or path of the object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
AutoPtr<const DataArray> da
= ds->get< DataArray<u8> >("myDataArray");
Definition at line 242 of file cel_datastore.h.
| void Celartem::DataStore::setProperty_U64 | ( | const String & | inName, | |
| uint64_t | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a 64-bit unsigned int value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A ssize_t value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setProperty_I64 | ( | const String & | inName, | |
| int64_t | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a 64-bit int value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A size_t value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
Add an unsigned int value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A ssize_t value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
Add an int value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A size_t value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setProperty_Double | ( | const String & | inName, | |
| double | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a double value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A double value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
Add a size_t value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A size_t value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| const char * | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a string value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A string. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| const utf8s & | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a string value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A string. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| const String & | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a string value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| v | A string. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| const Time & | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| const TimeSpan & | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| const Guid & | v, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
| void Celartem::DataStore::setProperty | ( | const String & | inName, | |
| Serializable * | inSerializable, | |||
| UChar4 | pathSep = '\0' | |||
| ) |
Add a Serializable value. This method automatically create the DataStore instance that is needed to add the specified DataStore to creating the directory structure.
| inName | Name or path of the new object. | |
| inSerializable | A Serializable value. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| AutoPtr<DataStore> Celartem::DataStore::getAsDataStore | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) |
This method gets the Serializable object specified by name as DataStore.
This implementation internally uses dynamic_cast<> to convert Serializable into DataStore.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| AutoPtr<const DataStore> Celartem::DataStore::getAsDataStore | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | const |
This method gets the Serializable object specified by name as DataStore (const version).
This implementation internally uses dynamic_cast<> to convert Serializable into DataStore.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| AutoPtr<BasicDataArray> Celartem::DataStore::getAsDataArray | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) |
This method gets the Serializable object specified by name as BasicDataArray.
This implementation internally uses dynamic_cast<> to convert Serializable into BasicDataArray.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| AutoPtr<const BasicDataArray> Celartem::DataStore::getAsDataArray | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | const |
This method gets the Serializable object specified by name as BasicDataArray (const version).
This implementation internally uses dynamic_cast<> to convert Serializable into BasicDataArray.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as ssize_t value.
Any signed integral type smaller than ssize_t can be obtained by this method.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as size_t value.
Any unsigned integral type smaller than size_t can be obtained by this method.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as int64_t value.
Any signed integral type smaller than int64_t can be obtained by this method.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
| uint64_t Celartem::DataStore::getAsUInteger64 | ( | const String & | inName, | |
| UChar4 | pathSep = '\0' | |||
| ) | const |
This method gets the Serializable object specified by name as uint64_t value.
Any unsigned integral type smaller than uint64_t can be obtained by this method.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as double value.
This implementation internally uses dynamic_cast<> to convert Serializable into SerializableData<double> that contains double value.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as String.
This implementation internally uses dynamic_cast<> to convert Serializable into SerializableData<String>.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as Time.
This implementation internally uses dynamic_cast<> to convert Serializable into SerializableData<Time>.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as TimeSpan.
This implementation internally uses dynamic_cast<> to convert Serializable into SerializableData<TimeSpan>.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
This method gets the Serializable object specified by name as Guid.
This implementation internally uses dynamic_cast<> to convert Serializable into SerializableData<Guid>.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
Verifies whether there is the object of the specified name or not.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
true if the object exists, otherwise false. Obtains the class name of the object specified by name.
| inName | Name or path of the new object. | |
| pathSep | Path separator used in inName parameter if inName is the path, otherwise it should be '\0'. |
Creates a new DataStore instance.
Creates a new DataStore instance from the stream.
This function is almost identical to deserialize function except it does only have a parameter that specifies the source stream. For more information, see deserialize.
| inStream | A stream from which the serialization starts. |
| static AutoPtr<Serializable> Celartem::DataStore::deserialize | ( | Stream * | inStream, | |
| size_t | inLevel = 0, |
|||
| Endian | inEndian = endianBig | |||
| ) | [static] |
This function starts the serialization from the specified stream.
| inStream | A stream from which the serialization starts. | |
| inLevel | The level of the object. If the objects has tree structure and the serialization process is to make recursion, the inLevel is incremented just before calling deserialize function of the child objects. If you are no the top level, set the value to 0. | |
| inEndian | The endianness used to read the data. |
| virtual void Celartem::DataStore::instructNoChecksum | ( | ) | [pure virtual] |