|
| template<typename T , typename ALLOC = typename T::allocator_type, typename std::enable_if< is_allocator< ALLOC >::value, int >::type = 0> |
| void | zserio::toJsonStream (const T &object, std::ostream &stream, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type, typename std::enable_if< is_allocator< ALLOC >::value, int >::type = 0> |
| void | zserio::toJsonStream (const T &object, std::ostream &stream, uint8_t indent, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename WALK_FILTER , typename ALLOC = typename T::allocator_type, typename std::enable_if< std::is_base_of< IBasicWalkFilter< ALLOC >, typename std::decay< WALK_FILTER >::type >::value, int >::type = 0> |
| void | zserio::toJsonStream (const T &object, std::ostream &stream, WALK_FILTER &&walkFilter, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename WALK_FILTER , typename ALLOC = typename T::allocator_type, typename std::enable_if< std::is_base_of< IBasicWalkFilter< ALLOC >, typename std::decay< WALK_FILTER >::type >::value, int >::type = 0> |
| void | zserio::toJsonStream (const T &object, std::ostream &stream, uint8_t indent, WALK_FILTER &&walkFilter, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type, typename std::enable_if< is_allocator< ALLOC >::value, int >::type = 0> |
| BasicString< RebindAlloc< ALLOC, char > > | zserio::toJsonString (const T &object, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type, typename std::enable_if< is_allocator< ALLOC >::value, int >::type = 0> |
| BasicString< RebindAlloc< ALLOC, char > > | zserio::toJsonString (const T &object, uint8_t indent, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename WALK_FILTER , typename ALLOC = typename T::allocator_type, typename std::enable_if< std::is_base_of< IBasicWalkFilter< ALLOC >, typename std::decay< WALK_FILTER >::type >::value, int >::type = 0> |
| BasicString< RebindAlloc< ALLOC, char > > | zserio::toJsonString (const T &object, WALK_FILTER &&walkFilter, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename WALK_FILTER , typename ALLOC = typename T::allocator_type, typename std::enable_if< std::is_base_of< IBasicWalkFilter< ALLOC >, typename std::decay< WALK_FILTER >::type >::value, int >::type = 0> |
| BasicString< RebindAlloc< ALLOC, char > > | zserio::toJsonString (const T &object, uint8_t indent, WALK_FILTER &&walkFilter, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type, typename std::enable_if< is_allocator< ALLOC >::value, int >::type = 0> |
| void | zserio::toJsonFile (const T &object, std::string_view fileName, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type, typename std::enable_if< is_allocator< ALLOC >::value, int >::type = 0> |
| void | zserio::toJsonFile (const T &object, std::string_view fileName, uint8_t indent, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename WALK_FILTER , typename ALLOC = typename T::allocator_type, typename std::enable_if< std::is_base_of< IBasicWalkFilter< ALLOC >, typename std::decay< WALK_FILTER >::type >::value, int >::type = 0> |
| void | zserio::toJsonFile (const T &object, std::string_view fileName, WALK_FILTER &&walkFilter, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename WALK_FILTER , typename ALLOC = typename T::allocator_type, typename std::enable_if< std::is_base_of< IBasicWalkFilter< ALLOC >, typename std::decay< WALK_FILTER >::type >::value, int >::type = 0> |
| void | zserio::toJsonFile (const T &object, const BasicString< RebindAlloc< ALLOC, char > > &fileName, uint8_t indent, WALK_FILTER &&walkFilter, const ALLOC &allocator=ALLOC()) |
| |
| template<typename ALLOC = std::allocator<uint8_t>> |
| detail::DebugStringTraits< ALLOC >::ReflectableDataPtr | zserio::fromJsonStream (const IBasicTypeInfo< ALLOC > &typeInfo, std::istream &is, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type> |
| T | zserio::fromJsonStream (std::istream &is, const ALLOC &allocator=ALLOC()) |
| |
| template<typename ALLOC = std::allocator<uint8_t>> |
| detail::DebugStringTraits< ALLOC >::ReflectableDataPtr | zserio::fromJsonString (const IBasicTypeInfo< ALLOC > &typeInfo, const BasicString< RebindAlloc< ALLOC, char > > &json, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type> |
| T | zserio::fromJsonString (const BasicString< RebindAlloc< ALLOC, char > > &json, const ALLOC &allocator=ALLOC()) |
| |
| template<typename ALLOC = std::allocator<uint8_t>> |
| detail::DebugStringTraits< ALLOC >::ReflectableDataPtr | zserio::fromJsonFile (const IBasicTypeInfo< ALLOC > &typeInfo, std::string_view fileName, const ALLOC &allocator=ALLOC()) |
| |
| template<typename T , typename ALLOC = typename T::allocator_type> |
| T | zserio::fromJsonFile (std::string_view fileName, const ALLOC &allocator=ALLOC()) |
| |
It provides utilities for JSON debug string which can be obtained from zserio objects.
These utilities are not used by generated code and they are provided only for user convenience.
- Note
- Please note that Zserio objects must be generated with
-withTypeInfoCode and -withReflectionCode zserio options to enable JSON debug string!
-
Please note that file operations allocate memory as needed and are not designed to use allocators.
Definition in file DebugStringUtil.h.