ad_map_access
Public Member Functions | List of all members
ad::map::serialize::ISerializer Class Referenceabstract

Interface for Serializer. More...

#include <ad/map/serialize/ISerializer.hpp>

Inheritance diagram for ad::map::serialize::ISerializer:
Inheritance graph
[legend]

Public Member Functions

 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)
 
virtual bool write (const void *x, size_t bytes)=0
 
virtual bool read (void *x, size_t bytes)=0
 
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 ()
 

Detailed Description

Interface for Serializer.

Member Function Documentation

◆ serializeEmptyObjectVec()

bool ad::map::serialize::ISerializer::serializeEmptyObjectVec ( )
inline

@Todo will delete this after preparing new map without connector

◆ setUseEmbeddedPoints()

bool ad::map::serialize::ISerializer::setUseEmbeddedPoints ( bool  useEmbeddedPoints)
inline

Specifies if the geometry points should be embedded within the objects or handled separately.

Warning
Deserialization setting must use same value that is applied to serialization!
Parameters
[in]useEmbeddedPointsSet to true if every geometry object should embed the geometry points. If false, geometry points have to be handled separately.
Returns
Old value of the flag.

◆ setUseMagic()

bool ad::map::serialize::ISerializer::setUseMagic ( bool  use_magic)
inline

Specifies if the every serialized block will be/is prefixed with object-specific magic number. This is application-wide setting.

Warning
Deserialization setting must use same value that is applied to serialization!
Parameters
[in]use_magicSet to true if every serialized block will be/is prefixed with object-specific magic number.
Returns
Old value of the flag.

The documentation for this class was generated from the following file: