|
Devel Lib
|
Template class representing a data field. More...
#include <SerializableData.h>


Public Member Functions | |
| virtual | ~IData ()=default |
| Default destructor. | |
| bool | doSerialize (IO::CWriteStream &i_oStream) const |
| Serializes the data to a write stream. More... | |
| bool | doDeserialize (IO::CReadStream &i_oStream) |
| Deserializes the data from a read stream. More... | |
| bool | doDeserialize (const char *i_szString) |
| Deserializes the data from a string. More... | |
| bool | doDeserialize (std::vector< std::string >::const_iterator &i_oIt, const std::vector< std::string >::const_iterator &i_oItEnd) |
| Deserializes the data from a range of strings. More... | |
| virtual size_t | size () const |
| Returns the size of the data. More... | |
| virtual bool | isHidden () const |
| Returns whether the field is hidden. More... | |
| virtual SCompareData | compareData () const |
| Returns the compare data for the data field. More... | |
| auto | begin () const |
| Returns an iterator pointing to the beginning of the value. More... | |
| auto | end () const |
| Returns an iterator pointing to the end of the value. More... | |
| auto & | operator[] (const size_t i_nIndex) |
| Returns a reference to the value at the specified index. More... | |
| const auto & | operator[] (const size_t i_nIndex) const |
| Returns a const reference to the value at the specified index. More... | |
| SerializerEnableIfNotArithmetic (IData< T > &) operator--() | |
| Pre-decrement operator. More... | |
| SerializerEnableIfNotArithmetic (IData< T > &) operator--(int) | |
| Post-decrement operator. More... | |
| SerializerEnableIfNotArithmetic (IData< T > &) operator++() | |
| Pre-increment operator. More... | |
| SerializerEnableIfNotArithmetic (IData< T > &) operator++(int) | |
| Post-increment operator. More... | |
Public Member Functions inherited from Devel::Serializing::IValue< int > | |
| IValue (TArgs... i_tArgs) | |
Constructs an IValue object with the specified arguments. More... | |
| const int & | value () const |
| Returns the value. More... | |
| int & | value () |
| Returns a reference to the value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Devel::Serializing::IValue< int > | |
| int | m_tValue |
| The value. | |
Template class representing a data field.
| T | The type of the data. |
| IsHidden | Specifies whether the field is hidden. |
|
inline |
Returns an iterator pointing to the beginning of the value.
|
inlinevirtual |
Returns the compare data for the data field.
Reimplemented in Devel::Serializing::IWString< IsHidden, T >, and Devel::Serializing::IString< IsHidden, T >.
|
inline |
Deserializes the data from a string.
| i_szString | The string to deserialize from. |
true if deserialization is successful, false otherwise.
|
inline |
Deserializes the data from a read stream.
| i_oStream | The read stream to deserialize from. |
true if deserialization is successful, false otherwise.
|
inline |
Deserializes the data from a range of strings.
| i_oIt | An iterator pointing to the current string. |
| i_oItEnd | An iterator pointing to the end of the range of strings. |
true if deserialization is successful, false otherwise.
|
inline |
Serializes the data to a write stream.
| i_oStream | The write stream to serialize to. |
true if serialization is successful, false otherwise.
|
inline |
Returns an iterator pointing to the end of the value.
|
inlinevirtual |
Returns whether the field is hidden.
true if the field is hidden, false otherwise.
|
inline |
Returns a reference to the value at the specified index.
| i_nIndex | The index of the value. |
|
inline |
Returns a const reference to the value at the specified index.
| i_nIndex | The index of the value. |
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.
|
inline |
Pre-decrement operator.
|
inline |
Post-decrement operator.
|
inlinevirtual |
Returns the size of the data.
Reimplemented in Devel::Serializing::IJsonType< T, TData >, Devel::Serializing::IJsonType< bool, Serializing::IBool<> >, Devel::Serializing::IJsonType< TStruct, IData< TStruct > >, Devel::Serializing::IJsonType< std::string, IData< std::string > >, Devel::Serializing::IJsonType< T, IArithmetic< T > >, and Devel::Serializing::IJsonType< TStruct, IData< std::vector< TStruct > > >.