SerializationContext Class Reference

Back to the index.

Public Member Functions | List of all members
SerializationContext Class Reference

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...
 

Detailed Description

A context used during serialization of objects.

Definition at line 37 of file SerializationContext.h.

Constructor & Destructor Documentation

◆ SerializationContext()

SerializationContext::SerializationContext ( )
inline

Constructs a default SerializationContext.

Definition at line 43 of file SerializationContext.h.

Member Function Documentation

◆ GetIndentation()

int SerializationContext::GetIndentation ( ) const
inline

Gets the indentation level of the context.

Returns
the indentation level

Definition at line 53 of file SerializationContext.h.

Referenced by Indented().

◆ Indented()

SerializationContext SerializationContext::Indented ( )
inline

Constructs a SerializationContext which is indented (1 step) compared to the current context.

Returns
An indented context.

Definition at line 74 of file SerializationContext.h.

References GetIndentation(), and SetIndentation().

Referenced by Component::Serialize().

◆ SetIndentation()

void SerializationContext::SetIndentation ( int  indentation)
inline

Sets the indentation level.

Parameters
indentationThe new indentation level.

Definition at line 63 of file SerializationContext.h.

Referenced by Indented().

◆ Tabs()

string SerializationContext::Tabs ( ) const
inline

Generates a string of Tab characters, based on the indentation level.

Returns
a string of tab characters

Definition at line 87 of file SerializationContext.h.

Referenced by StateVariable::Serialize(), and Component::Serialize().


The documentation for this class was generated from the following file:

Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13