Generate a list of mapped nodes and connections from json.
More...
#include <NodeBuilder.h>
|
| | NodeBuilder () |
| | Default constructor. Does nothing.
|
| | ~NodeBuilder () |
| | Default destructor. Does nothing.
|
| int | parseNodeList (const std::string &filename, const std::string &node_key="") |
| | Load a list of nodes in from json file.
|
| std::vector< ImNode > & | nodeList () |
| | Return list of nodes.
|
Generate a list of mapped nodes and connections from json.
NodeBuilder receives a json file input with a list of nodes and connections and builds a list of nodes from it.
◆ NodeBuilder()
| warptwin::NodeBuilder::NodeBuilder |
( |
| ) |
|
|
inline |
Default constructor. Does nothing.
◆ ~NodeBuilder()
| warptwin::NodeBuilder::~NodeBuilder |
( |
| ) |
|
|
inline |
Default destructor. Does nothing.
◆ nodeList()
| std::vector< ImNode > & warptwin::NodeBuilder::nodeList |
( |
| ) |
|
|
inline |
Return list of nodes.
- Returns
- List of nodes
◆ parseNodeList()
| int warptwin::NodeBuilder::parseNodeList |
( |
const std::string & | filename, |
|
|
const std::string & | node_key = "" ) |
Load a list of nodes in from json file.
- Parameters
-
| filename | The name of the json file to load from |
| node_key | The json key at which nodes are stored. Default is no key ("") |
- Returns
- Error code corresponding to success/failure
◆ _node_list
| std::vector<ImNode> warptwin::NodeBuilder::_node_list |
|
protected |
The documentation for this class was generated from the following files:
- /Users/mickey/Documents/Projects/warptwin/cpp/src/configuration/NodeBuilder.h
- /Users/mickey/Documents/Projects/warptwin/cpp/src/configuration/NodeBuilder.cpp