Write out ModelSpace Python file from node information.
More...
#include <ModelSpacePyConfigWriter.h>
|
AutoDoc * | _autodoc_ptr |
|
std::vector< ImNode * > | _watched_nodes |
|
std::vector< ImNode * > | _sequenced_nodes |
|
std::vector< std::pair< Connection *, Connection * > > | _paired_connections |
|
std::string | _filename = "gui_config_file.py" |
|
Write out ModelSpace Python file from node information.
◆ _decomposeNodeInformation()
void modelspace::ModelSpacePyConfigWriter::_decomposeNodeInformation |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _getConnectionByUid()
Connection * modelspace::ModelSpacePyConfigWriter::_getConnectionByUid |
( |
int |
uid | ) |
|
|
protected |
Get pointer to connection by uid.
- Parameters
-
- Returns
- Pointer to connection associated with uid. Nullptr if not found
◆ _getConnectionsByName()
std::vector< Connection * > modelspace::ModelSpacePyConfigWriter::_getConnectionsByName |
( |
ImNode * |
node, |
|
|
const std::string & |
name |
|
) |
| |
|
protected |
Return all connections matching set criteria in a node.
- Parameters
-
node | The node to search |
name | The name to search for |
- Returns
- A vector of all connections matching the criteria
◆ _getConnectionsByType()
std::vector< Connection * > modelspace::ModelSpacePyConfigWriter::_getConnectionsByType |
( |
ImNode * |
node, |
|
|
int |
type |
|
) |
| |
|
protected |
Return all connections matching set criteria in a node.
- Parameters
-
type | The connection type to search for |
name | The name to search for |
- Returns
- A vector of all connections matching the criteria
◆ _getNodeByUid()
ImNode * modelspace::ModelSpacePyConfigWriter::_getNodeByUid |
( |
int |
uid | ) |
|
|
protected |
Get pointer to a node by uid.
- Parameters
-
- Returns
- Pointer to node associated with uid. Nullptr if not found
◆ _getSignalName()
std::string modelspace::ModelSpacePyConfigWriter::_getSignalName |
( |
Connection * |
signal | ) |
|
|
protected |
Get the full modelspace name of a signal from Connection object.
- Parameters
-
signal | The signal to resolve name of |
- Returns
- String with signal name
◆ _setNodeConnectionSequence()
void modelspace::ModelSpacePyConfigWriter::_setNodeConnectionSequence |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _writeDataConnection()
void modelspace::ModelSpacePyConfigWriter::_writeDataConnection |
( |
Connection * |
upstream, |
|
|
Connection * |
downstream |
|
) |
| |
|
overrideprotectedvirtual |
Write the connection of one "Connection" to another.
- Parameters
-
upstream | The data output connection (typically, but not always an output) to connect |
downstream | The data input connection (typically, but not always an input) to connect |
Reimplemented from modelspace::ConfigurationWriter.
◆ _writeDataValue()
void modelspace::ModelSpacePyConfigWriter::_writeDataValue |
( |
ImNode * |
node | ) |
|
|
overrideprotectedvirtual |
◆ _writeLogData()
void modelspace::ModelSpacePyConfigWriter::_writeLogData |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _writeOutputEnd()
void modelspace::ModelSpacePyConfigWriter::_writeOutputEnd |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ _writeOutputStart()
void modelspace::ModelSpacePyConfigWriter::_writeOutputStart |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ file()
void modelspace::ConfigurationWriter::file |
( |
const std::string & |
filename | ) |
|
|
inlineinherited |
Set the file for write and redirect output to that file.
- Parameters
-
filename | The filename to write to |
- Returns
- 0 on success, 1 on failure
- Note
- Calling this function will cause the ConfigurationWriter class to begin writing its data to the provided file
◆ unwatchNode()
void modelspace::ConfigurationWriter::unwatchNode |
( |
ImNode * |
target | ) |
|
|
inherited |
Remove a node from the ConfigurationWriter for tracking.
- Parameters
-
target | The node to remove from tracking |
- Note
- Will ignore node if its unique ID is not tracked
◆ watchNode()
void modelspace::ConfigurationWriter::watchNode |
( |
ImNode * |
target | ) |
|
|
inherited |
Add a node to the ConfigurationWriter for tracking.
- Parameters
-
target | The node to add to tracking |
- Note
- Will ignore node if its unique ID is already tracked
The documentation for this class was generated from the following files:
- /home/mickey/modelspace/cpp/src/configuration/ModelSpacePyConfigWriter.h
- /home/mickey/modelspace/cpp/src/configuration/ModelSpacePyConfigWriter.cpp