|
Zserio C++17 runtime library
0.5.0
Built for Zserio 2.17.0
|
#include <fstream>#include <sstream>#include <utility>#include "zserio/JsonReader.h"#include "zserio/JsonWriter.h"#include "zserio/ReflectableUtil.h"#include "zserio/Traits.h"#include "zserio/Walker.h"Go to the source code of this file.
Namespaces | |
| zserio | |
Functions | |
| 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.
-withTypeInfoCode and -withReflectionCode zserio options to enable JSON debug string!Definition in file DebugStringUtil.h.