Circus 0.0.1-alpha
C++ Serialization Framework
|
A flexible serializer for C++ objects, primitives, STL containers, and user-defined types. More...
#include <serializer.hpp>
Public Member Functions | |
serializer (OStreamT &s) | |
Constructs a serializer with the given output stream. | |
template<typename... Args> | |
void | operator() (Args &&...args) & |
Serializes the given arguments using function-call syntax. | |
template<typename... Args> | |
serializer & | operator<< (Args &&...args) |
Serializes the given arguments using stream-like syntax. |
A flexible serializer for C++ objects, primitives, STL containers, and user-defined types.
The serializer emits a structured, human-readable output inspired by formats like JSON or YAML, but uses custom token syntax and compile-time traits to determine how to serialize different types.
OStreamT | Output stream type (must derive from std::ostream) |
|
inline |
Constructs a serializer with the given output stream.
s | Output stream reference (e.g., std::ostringstream, std::ofstream) |
|
inline |
Serializes the given arguments using function-call syntax.
Example:
|
inline |
Serializes the given arguments using stream-like syntax.
Example: