A context used during serialization of objects. More...
#include <SerializationContext.h>
Public Member Functions | |
SerializationContext () | |
Constructs a default SerializationContext. More... | |
int | GetIndentation () const |
Gets the indentation level of the context. More... | |
void | SetIndentation (int indentation) |
Sets the indentation level. More... | |
SerializationContext | Indented () |
Constructs a SerializationContext which is indented (1 step) compared to the current context. More... | |
string | Tabs () const |
Generates a string of Tab characters, based on the indentation level. More... | |
A context used during serialization of objects.
Definition at line 37 of file SerializationContext.h.
|
inline |
Constructs a default SerializationContext.
Definition at line 43 of file SerializationContext.h.
|
inline |
Gets the indentation level of the context.
Definition at line 53 of file SerializationContext.h.
Referenced by Indented().
|
inline |
Constructs a SerializationContext which is indented (1 step) compared to the current context.
Definition at line 74 of file SerializationContext.h.
References GetIndentation(), and SetIndentation().
Referenced by Component::Serialize().
|
inline |
Sets the indentation level.
indentation | The new indentation level. |
Definition at line 63 of file SerializationContext.h.
Referenced by Indented().
|
inline |
Generates a string of Tab characters, based on the indentation level.
Definition at line 87 of file SerializationContext.h.
Referenced by StateVariable::Serialize(), and Component::Serialize().