Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/StructuredOutput.h>
Public Member Functions | |
virtual | ~StructuredOutput () |
virtual void | write (bool x)=0 |
virtual void | write (char c)=0 |
virtual void | write (signed char)=0 |
virtual void | write (unsigned char)=0 |
virtual void | write (short x)=0 |
virtual void | write (unsigned short x)=0 |
virtual void | write (int x)=0 |
virtual void | write (unsigned int x)=0 |
virtual void | write (long x)=0 |
virtual void | write (unsigned long x)=0 |
virtual void | write (long long int x)=0 |
virtual void | write (long long unsigned int x)=0 |
virtual void | write (float x)=0 |
virtual void | write (double x)=0 |
virtual void | write (long double x)=0 |
virtual void | write (const char *s)=0 |
virtual void | write (cstring x)=0 |
virtual void | write (const string &x)=0 |
void | key (const char *x) |
virtual void | key (cstring x)=0 |
virtual void | key (const string &x)=0 |
virtual void | beginMap ()=0 |
virtual void | endMap ()=0 |
virtual void | beginList ()=0 |
virtual void | endList ()=0 |
This interface is implemented to be performed structure output, that is the output of values orgznized as:
Classical structured outputs encompasses JSON, XML or (INI)[https://en.wikipedia.org/wiki/INI_file].
Base types are simply written by a call to a write() function.
To write an list, perform a call to beginList(), as many call to write the items composing the list and closing is performed by calling endList().
To write a map, perform a call to beginMap() and the, for each map value,
This interface is currently implemented by:
|
virtual |
|
inline |
References StructuredOutput::key().
Referenced by StructuredOutput::key().