ad_map_access
|
Serializer implementation. More...
#include <ad/map/serialize/Serializer.hpp>
Public Member Functions | |
Serializer (bool store, bool calc_checksum) | |
bool | open (std::string const &config, size_t &version_major, size_t &version_minor) |
bool | close () |
Public Member Functions inherited from ad::map::serialize::ISerializer | |
ISerializer (bool store) | |
bool | isStoring () const |
template<typename T > | |
bool | serialize (T &x) |
bool | serialize (SerializeableMagic const &magic) |
template<typename T , typename SerializeBaseType , SerializeableMagic magic> | |
bool | serializeGeneratedType (T &x) |
template<typename T > | |
bool | serializeVector (std::vector< T > &x) |
template<typename T > | |
bool | serializeObjectVector (std::vector< T > &x, SerializeableMagic const &magic=SerializeableMagic::ObjectVectorType) |
template<typename T , typename U , typename Comp > | |
bool | serializeObjectMap (std::map< T, U, Comp > &x) |
template<typename T , typename U , typename Comp > | |
bool | serializeObjectPtrMap (std::map< T, std::shared_ptr< U >, Comp > &x) |
template<typename T , typename U , typename Comp > | |
bool | serializeObjectVecMap (std::map< T, std::vector< U >, Comp > &x) |
bool | setUseMagic (bool use_magic) |
Specifies if the every serialized block will be/is prefixed with object-specific magic number. This is application-wide setting. More... | |
bool | setUseEmbeddedPoints (bool useEmbeddedPoints) |
Specifies if the geometry points should be embedded within the objects or handled separately. More... | |
bool | useEmbeddedPoints () const |
retunrs the setting if embedded points should be used or not on serialization | |
bool | serializeEmptyObjectVec () |
Public Member Functions inherited from ad::map::serialize::IChecksum | |
virtual const char * | getChecksumType ()=0 |
Public Member Functions inherited from ad::map::serialize::IStorage | |
virtual const char * | getStorageType ()=0 |
Static Public Attributes | |
static size_t | VERSION_MAJOR |
static size_t | VERSION_MINOR |
Additional Inherited Members | |
Protected Member Functions inherited from ad::map::serialize::IChecksum | |
virtual void | initChecksum ()=0 |
virtual void | updateChecksum (const void *x, size_t bytes)=0 |
virtual bool | writeChecksum ()=0 |
virtual bool | checksumOK ()=0 |
Protected Member Functions inherited from ad::map::serialize::IStorage | |
virtual bool | doOpenForRead (std::string const &config)=0 |
virtual bool | doOpenForWrite (std::string const &config)=0 |
virtual bool | doCloseForRead ()=0 |
virtual bool | doCloseForWrite ()=0 |
virtual bool | doWrite (const void *x, std::size_t bytes)=0 |
virtual bool | doRead (void *x, std::size_t bytes)=0 |
Serializer implementation.