![]() |
ModelSpace
|
Generate a list of mapped nodes and connections from json. More...
#include <NodeBuilder.h>
Public Member Functions | |
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. | |
Protected Attributes | |
std::vector< ImNode > | _node_list |
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.
|
inline |
Return list of nodes.
int modelspace::NodeBuilder::parseNodeList | ( | const std::string & | filename, |
const std::string & | node_key = "" |
||
) |
Load a list of nodes in from json file.
filename | The name of the json file to load from |
node_key | The json key at which nodes are stored. Default is no key ("") |