OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Macros
SerializationFwd.h File Reference
#include <string>
#include <string_view>

Macros

#define MM_DECLARE_SERIALIZATION_FUNCTIONS(TYPE)
 

Macro Definition Documentation

◆ MM_DECLARE_SERIALIZATION_FUNCTIONS

#define MM_DECLARE_SERIALIZATION_FUNCTIONS (   TYPE)
Value:
[[nodiscard]] bool trySerialize(const TYPE &src, std::string *dst); \
[[nodiscard]] bool tryDeserialize(std::string_view src, TYPE *dst); \
void serialize(const TYPE &src, std::string *dst); \
void deserialize(std::string_view src, TYPE *dst); \
inline bool lexical_cast(const std::string& src, TYPE& dst) { /* CLI11 support. */ \
return tryDeserialize(src, &dst); \
}
void deserialize(InputStream &src, IndoorLocation_MM7 *dst)
Definition: CompositeSnapshots.cpp:149
void serialize(const IndoorDelta_MM7 &src, OutputStream *dst)
Definition: CompositeSnapshots.cpp:278
bool trySerialize(const bool &src, std::string *dst)
Definition: StandardSerialization.cpp:32
bool tryDeserialize(std::string_view src, bool *dst)
Definition: StandardSerialization.cpp:37

Forward-declares lexical serialization functions for the given type.

Parameters
TYPEType to forward-declare lexical serialization functions for.