Atlas 0.7.0
Networking protocol for the Worldforge system.
|
A formatter which uses multiple lines for list contents. More...
#include <MultiLineListFormatter.h>
Public Member Functions | |
MultiLineListFormatter (std::ostream &s, Atlas::Bridge &b) | |
void | mapListItem (std::string name) override |
void | listMapItem () override |
void | listListItem () override |
void | listIntItem (std::int64_t l) override |
void | listFloatItem (double d) override |
void | listStringItem (std::string s) override |
void | listNoneItem () override |
void | listEnd () override |
void | streamBegin () override |
void | streamMessage () override |
void | streamEnd () override |
void | mapMapItem (std::string name) override |
void | mapIntItem (std::string name, std::int64_t) override |
void | mapFloatItem (std::string name, double) override |
void | mapStringItem (std::string name, std::string) override |
void | mapNoneItem (std::string name) override |
void | mapEnd () override |
void | setSpacing (int s) |
Protected Attributes | |
std::ostream & | m_stream |
Bridge & | m_bridge |
int | m_indent |
int | m_spacing |
A formatter which uses multiple lines for list contents.
Definition at line 27 of file MultiLineListFormatter.h.
Atlas::MultiLineListFormatter::MultiLineListFormatter | ( | std::ostream & | s, |
Atlas::Bridge & | b | ||
) |
Definition at line 24 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Ends the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 77 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Adds a float to the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 56 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Adds an integer to the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 49 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Starts a list object in the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 41 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Starts a map object in the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 36 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Adds an empty item to the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 70 of file MultiLineListFormatter.cpp.
|
overridevirtual |
Adds a string to the currently streamed list.
Reimplemented from Atlas::Formatter.
Definition at line 63 of file MultiLineListFormatter.cpp.
|
overridevirtualinherited |
Ends the currently streamed map.
Implements Atlas::Bridge.
Definition at line 86 of file Formatter.cpp.
|
overridevirtualinherited |
Adds a float to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 66 of file Formatter.cpp.
|
overridevirtualinherited |
Adds an integer to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 59 of file Formatter.cpp.
|
overridevirtual |
Starts a list object to the currently streamed map.
Reimplemented from Atlas::Formatter.
Definition at line 29 of file MultiLineListFormatter.cpp.
|
overridevirtualinherited |
Starts a map object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 45 of file Formatter.cpp.
|
overridevirtualinherited |
Adds a none item to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 80 of file Formatter.cpp.
|
overridevirtualinherited |
Adds a string to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 73 of file Formatter.cpp.
|
inlineinherited |
Definition at line 49 of file Formatter.h.
|
overridevirtualinherited |
|
overridevirtualinherited |
|
overridevirtualinherited |
Start a message in an Atlas stream.
Implements Atlas::Bridge.
Definition at line 28 of file Formatter.cpp.
|
protectedinherited |
Definition at line 56 of file Formatter.h.
|
protectedinherited |
Definition at line 57 of file Formatter.h.
|
protectedinherited |
Definition at line 58 of file Formatter.h.
|
protectedinherited |
Definition at line 55 of file Formatter.h.