|
HoverRace
2.0
|
An inspection node which maps field names to values (either strings or inspectable subobjects). More...
#include <InspectMapNode.h>
Inheritance diagram for HoverRace::Util::InspectMapNode:Public Member Functions | |
| InspectMapNode () | |
| virtual | ~InspectMapNode () |
| template<typename T > | |
| InspectMapNode & | AddArray (const std::string &name, T *elems, size_t startIndex, size_t size) |
| template<typename T > | |
| InspectMapNode & | AddField (const std::string &name, const T &value) |
| InspectMapNode & | AddField (const std::string &name, const char *value) |
| InspectMapNode & | AddField (const std::string &name, const std::string &value) |
| InspectMapNode & | AddField (const std::string &name, bool value) |
| InspectMapNode & | AddSubobject (const std::string &name, const Inspectable *obj) |
| void | RenderToStream (std::ostream &os) |
| Render this node to an output stream. More... | |
| void | RenderToString (std::string &s) |
| Render this node to a string. More... | |
| void | RenderToYaml (yaml::Emitter &emitter) override |
| Render this node to a YAML emitter. More... | |
Public Member Functions inherited from HoverRace::Util::InspectNode | |
| InspectNode () | |
| virtual | ~InspectNode () |
Protected Member Functions | |
| void | AddStringField (const std::string &name, const std::string &value) |
Private Types | |
| using | SUPER = InspectNode |
Private Attributes | |
| std::vector< std::pair< std::string, std::shared_ptr< InspectNode > > > | fields |
An inspection node which maps field names to values (either strings or inspectable subobjects).
|
private |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
| InspectMapNode & HoverRace::Util::InspectMapNode::AddSubobject | ( | const std::string & | name, |
| const Inspectable * | obj | ||
| ) |
| void HoverRace::Util::InspectMapNode::RenderToStream | ( | std::ostream & | os | ) |
Render this node to an output stream.
| os | The output stream. |
| std::exception | An error occurred. |
| void HoverRace::Util::InspectMapNode::RenderToString | ( | std::string & | s | ) |
Render this node to a string.
| s | The output string. |
| std::exception | An error occurred. |
|
overridevirtual |
Render this node to a YAML emitter.
| emitter | The emitter. |
Implements HoverRace::Util::InspectNode.
|
private |
1.8.11