Atlas
0.7.0
Networking protocol for the Worldforge system.
|
A bridge which is meant to be used solely for presenting Element data. More...
#include <PresentationBridge.h>
Public Member Functions | |
PresentationBridge (std::ostream &stream) | |
void | streamBegin () override |
void | streamMessage () override |
void | streamEnd () override |
void | mapMapItem (std::string name) override |
void | mapListItem (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 | listMapItem () override |
void | listListItem () override |
void | listIntItem (std::int64_t) override |
void | listFloatItem (double) override |
void | listStringItem (std::string) override |
void | listNoneItem () override |
void | listEnd () override |
void | setMaxItemsPerLevel (size_t maxItems) |
void | setStartFilteringLevel (size_t startFilteringLevel) |
A bridge which is meant to be used solely for presenting Element data.
Definition at line 35 of file PresentationBridge.h.
|
overridevirtual |
Ends the currently streamed list.
Implements Atlas::Bridge.
Definition at line 129 of file PresentationBridge.cpp.
|
overridevirtual |
Adds a float to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 112 of file PresentationBridge.cpp.
|
overridevirtual |
Adds an integer to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 106 of file PresentationBridge.cpp.
|
overridevirtual |
Starts a list object in the currently streamed list.
Implements Atlas::Bridge.
Definition at line 101 of file PresentationBridge.cpp.
|
overridevirtual |
Starts a map object in the currently streamed list.
Implements Atlas::Bridge.
Definition at line 87 of file PresentationBridge.cpp.
|
overridevirtual |
Adds an empty item to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 124 of file PresentationBridge.cpp.
|
overridevirtual |
Adds a string to the currently streamed list.
Implements Atlas::Bridge.
Definition at line 118 of file PresentationBridge.cpp.
|
overridevirtual |
Ends the currently streamed map.
Implements Atlas::Bridge.
Definition at line 82 of file PresentationBridge.cpp.
|
overridevirtual |
Adds a float to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 64 of file PresentationBridge.cpp.
|
overridevirtual |
Adds an integer to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 58 of file PresentationBridge.cpp.
|
overridevirtual |
Starts a list object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 50 of file PresentationBridge.cpp.
|
overridevirtual |
Starts a map object to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 43 of file PresentationBridge.cpp.
|
overridevirtual |
Adds a none item to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 76 of file PresentationBridge.cpp.
|
overridevirtual |
Adds a string to the currently streamed map.
Implements Atlas::Bridge.
Definition at line 70 of file PresentationBridge.cpp.
void Atlas::PresentationBridge::setMaxItemsPerLevel | ( | size_t | maxItems | ) |
Sets the max number of items to print per level.
This is useful to prevent too much output.
maxItems | The max number of items. 0 disables this feature (which is the default). |
Definition at line 160 of file PresentationBridge.cpp.
void Atlas::PresentationBridge::setStartFilteringLevel | ( | size_t | startFilteringLevel | ) |
Sets the level at which filtering, if setMaxItemsPerLevel() has been called, should occur. Default is 1 (i.e. print everything for the top level).
startFilteringLevel | At which level filtering should start. |
Definition at line 165 of file PresentationBridge.cpp.
|
overridevirtual |
Begin an Atlas stream.
Implements Atlas::Bridge.
Definition at line 30 of file PresentationBridge.cpp.
|
overridevirtual |
Ends the Atlas stream.
Implements Atlas::Bridge.
Definition at line 38 of file PresentationBridge.cpp.
|
overridevirtual |
Start a message in an Atlas stream.
Implements Atlas::Bridge.
Definition at line 34 of file PresentationBridge.cpp.