Emergency 20 Dokumentation  4.1.0
Classes | Enumerations | Functions
qsf::serialization Namespace Reference

Classes

struct  serializer
 
struct  serializer< ai::AreaConfiguration >
 
struct  serializer< ai::CombinedSearchConnectionPoint >
 
struct  serializer< ai::detail::ReservationContainerEntry >
 
struct  serializer< ai::DistanceGrid >
 
struct  serializer< ai::DynamicPortal >
 
struct  serializer< ai::DynamicTargetTracker >
 
struct  serializer< ai::EdgePortal >
 
struct  serializer< ai::EvadedCollisionInfo >
 
struct  serializer< ai::GridConfiguration >
 
struct  serializer< ai::GridCoordinates >
 
struct  serializer< ai::InterMapConnections >
 
struct  serializer< ai::Lane >
 
struct  serializer< ai::LaneCollection >
 
struct  serializer< ai::LaneEndNode >
 
struct  serializer< ai::LaneNode< Vector > >
 
struct  serializer< ai::MovementMode >
 
struct  serializer< ai::NavigationMapUpdateConfiguration >
 
struct  serializer< ai::NavigationTargetPoint >
 
struct  serializer< ai::NavigationTaskStatistics >
 
struct  serializer< ai::ObstructingCollision >
 
struct  serializer< ai::Path >
 
struct  serializer< ai::PathSearchConfiguration >
 
struct  serializer< ai::Perception >
 
struct  serializer< ai::PerceptionEvent >
 
struct  serializer< ai::position::CorrectionOptions >
 
struct  serializer< ai::position::CorrectionSettings >
 
struct  serializer< ai::Reservation >
 
struct  serializer< ai::ReservationContainer >
 
struct  serializer< ai::SearchStepToIgnore >
 
struct  serializer< ai::TrafficLaneWorldCreationSettings >
 
struct  serializer< ai::TurningConstraint >
 
struct  serializer< ai::voronoi::DynamicGraph >
 
struct  serializer< ai::voronoi::DynamicGraph::HubNodeIdentifier >
 
struct  serializer< ai::Waypoint >
 
struct  serializer< ai::worldElement::State >
 
struct  serializer< ai::WorldElementStateCollection >
 
struct  serializer< AssetProxy >
 
struct  serializer< bool >
 
struct  serializer< boost::container::flat_map< Key, Value, LessPredicate, Allocator > >
 
struct  serializer< boost::container::flat_multimap< Key, Value, LessPredicate, Allocator > >
 
struct  serializer< boost::container::flat_multiset< T, LessPredicate, Allocator > >
 
struct  serializer< boost::container::flat_set< T, LessPredicate, Allocator > >
 
struct  serializer< boost::dynamic_bitset< Block, Allocator > >
 
struct  serializer< boost::flyweight< T, Arg1, Arg2, Arg3, Arg4, Arg5 > >
 
struct  serializer< boost::optional< T > >
 
struct  serializer< btAlignedObjectArray< T > >
 
struct  serializer< btMatrix3x3 >
 
struct  serializer< btQuaternion >
 
struct  serializer< btTransform >
 
struct  serializer< btVector3 >
 
struct  serializer< char >
 
struct  serializer< Color3 >
 
struct  serializer< Color4 >
 
struct  serializer< const T >
 
struct  serializer< double >
 
struct  serializer< em5::packet::TestOpenPortResponse::ReachableAddress >
 
struct  serializer< em5::packet::TestOpenPortResponse::ResultSet >
 
struct  serializer< em5::PlayerProgress::MedalType >
 
struct  serializer< em5::PlayerProgress::WorldEventProgress >
 
struct  serializer< float >
 
struct  serializer< FlyweightString >
 
struct  serializer< glm::mat2 >
 
struct  serializer< glm::mat3 >
 
struct  serializer< glm::mat4 >
 
struct  serializer< glm::quat >
 
struct  serializer< glm::vec2 >
 
struct  serializer< glm::vec3 >
 
struct  serializer< glm::vec4 >
 
struct  serializer< int16 >
 
struct  serializer< int32 >
 
struct  serializer< int64 >
 
struct  serializer< int8 >
 
struct  serializer< logic::TargetPoint >
 
struct  serializer< NamedIdentifier >
 
struct  serializer< Percentage >
 
struct  serializer< std::auto_ptr< T > >
 
struct  serializer< std::deque< T, Allocator > >
 
struct  serializer< std::list< T, Allocator > >
 
struct  serializer< std::map< Key, Value, Comparator, Allocator > >
 
struct  serializer< std::multimap< Key, Value, Comparator, Allocator > >
 
struct  serializer< std::multiset< T, Comparator, Allocator > >
 
struct  serializer< std::pair< T, U > >
 
struct  serializer< std::set< T, Comparator, Allocator > >
 
struct  serializer< std::string >
 
struct  serializer< std::unordered_map< Key, Value, Hasher, Comparator, Allocator > >
 
struct  serializer< std::vector< bool, Allocator > >
 
struct  serializer< std::vector< T, Allocator > >
 
struct  serializer< Time >
 
struct  serializer< uint16 >
 
struct  serializer< uint32 >
 
struct  serializer< uint64 >
 
struct  serializer< uint8 >
 
struct  serializer< UnsignedFloat >
 

Enumerations

enum  Format { JSON, BINARY }
 

Functions

template<typename STORAGE , typename ENUM >
void serialize (BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
 
template<typename STORAGE , typename ENUM >
void serialize (BinarySerializer &serializer, EnumBitmask< STORAGE, ENUM > &enumBitmask)
 
template<>
uint32 getToken< uint8 > ()
 
template<>
uint32 getToken< int8 > ()
 
template<>
uint32 getToken< uint16 > ()
 
template<>
uint32 getToken< int16 > ()
 
template<>
uint32 getToken< uint32 > ()
 
template<>
uint32 getToken< int32 > ()
 
template<>
uint32 getToken< uint64 > ()
 
template<>
uint32 getToken< int64 > ()
 
template<typename T >
uint32 getToken ()
 
void QSF_AI_API_EXPORT serializeVectorOfBools (BinarySerializer &serializer, std::vector< bool > &data)
 
template<typename Archive >
unsigned int ensureFormat (Archive &root, const std::string &type, unsigned int version)
 
template<typename Archive >
unsigned int ensureFormat (Archive &root, const std::string &type, unsigned int minVersion, unsigned int maxVersion)
 
void writeHeader (boost::property_tree::ptree &root, const std::string &type, unsigned int version)
 
void readHeader (const boost::property_tree::ptree &root, std::string &type, unsigned int &version)
 
template<typename Vector >
Vector readVector (const std::string &text, const std::string &delimiter)
 
template<typename Vector >
std::string getVectorAsText (const Vector &v, const std::string &delimiter)
 
bool readBoolean (const std::string &text)
 
bool readBoolean (const boost::property_tree::ptree &node)
 
bool readBooleanFromChild (const boost::property_tree::ptree &node, const std::string &key)
 
const char * getBooleanAsText (bool value)
 
void writeBoolean (boost::property_tree::ptree &node, bool value)
 
void addBooleanChild (boost::property_tree::ptree &root, const std::string &key, bool value)
 

Enumeration Type Documentation

Enumerator
JSON 
BINARY 

Function Documentation

void qsf::serialization::addBooleanChild ( boost::property_tree::ptree root,
const std::string &  key,
bool  value 
)
template<typename Archive >
unsigned int qsf::serialization::ensureFormat ( Archive &  root,
const std::string &  type,
unsigned int  version 
)

This reads the header data and compares the contents to parameter passed. An exception is thrown if either the header data is not found or does not comply to the requirements passed. You can either pass an exact version or a range of supported versions [minVersion, maxVersion]. The exact version number found is returned which is only additional information when using the range variant but is done in both cases for consistency.

template<typename Archive >
unsigned int qsf::serialization::ensureFormat ( Archive &  root,
const std::string &  type,
unsigned int  minVersion,
unsigned int  maxVersion 
)
const char* qsf::serialization::getBooleanAsText ( bool  value)
template<typename T >
uint32 qsf::serialization::getToken ( )
template<>
uint32 qsf::serialization::getToken< int16 > ( )
inline
template<>
uint32 qsf::serialization::getToken< int32 > ( )
inline
template<>
uint32 qsf::serialization::getToken< int64 > ( )
inline
template<>
uint32 qsf::serialization::getToken< int8 > ( )
inline
template<>
uint32 qsf::serialization::getToken< uint16 > ( )
inline
template<>
uint32 qsf::serialization::getToken< uint32 > ( )
inline
template<>
uint32 qsf::serialization::getToken< uint64 > ( )
inline
template<>
uint32 qsf::serialization::getToken< uint8 > ( )
inline
template<typename Vector >
std::string qsf::serialization::getVectorAsText ( const Vector &  v,
const std::string &  delimiter 
)
bool qsf::serialization::readBoolean ( const std::string &  text)
bool qsf::serialization::readBoolean ( const boost::property_tree::ptree node)
bool qsf::serialization::readBooleanFromChild ( const boost::property_tree::ptree node,
const std::string &  key 
)
void qsf::serialization::readHeader ( const boost::property_tree::ptree root,
std::string &  type,
unsigned int &  version 
)
template<typename Vector >
Vector qsf::serialization::readVector ( const std::string &  text,
const std::string &  delimiter 
)
template<typename STORAGE , typename ENUM >
void qsf::serialization::serialize ( BinarySerializer serializer,
BitFlagSet< STORAGE, ENUM > &  bitFlagSet 
)
inline
template<typename STORAGE , typename ENUM >
void qsf::serialization::serialize ( BinarySerializer serializer,
EnumBitmask< STORAGE, ENUM > &  enumBitmask 
)
inline
void QSF_AI_API_EXPORT qsf::serialization::serializeVectorOfBools ( BinarySerializer serializer,
std::vector< bool > &  data 
)
void qsf::serialization::writeBoolean ( boost::property_tree::ptree node,
bool  value 
)
void qsf::serialization::writeHeader ( boost::property_tree::ptree root,
const std::string &  type,
unsigned int  version 
)