0.5.1
Loading...
Searching...
No Matches
FlowManager.hpp File Reference

Save/Load the Nodes. More...

Go to the source code of this file.

Namespaces

namespace  NAV
namespace  NAV::flow

Typedefs

using json
 json namespace

Functions

void NAV::flow::AddLink (ax::NodeEditor::LinkId linkId)
 Adds the link.
void NAV::flow::AddNode (Node *node)
 Add the provided node object to the list of nodes.
void NAV::flow::ApplyChanges ()
 Signals that there have been changes to the flow.
void NAV::flow::ClearAllNodeQueues ()
 Clears all nodes queues.
void NAV::flow::DeleteAllNodes ()
 Delete all nodes.
bool NAV::flow::DeleteNode (ax::NodeEditor::NodeId nodeId)
 Delete the node provided by id.
void NAV::flow::DisableAllCallbacks ()
 Disables all Node callbacks.
void NAV::flow::DiscardChanges ()
 Discards the unsaved changes flag. Does not really discard the changes.
void NAV::flow::EnableAllCallbacks ()
 Enables all Node callbacks.
InputPinNAV::flow::FindInputPin (ax::NodeEditor::PinId id)
 Finds the Pin for the PinId.
NodeNAV::flow::FindNode (ax::NodeEditor::NodeId id)
 Finds the Node for the NodeId.
OutputPinNAV::flow::FindOutputPin (ax::NodeEditor::PinId id)
 Finds the Pin for the PinId.
std::filesystem::path NAV::flow::GetConfigPath ()
 Get the path where config files are searched.
std::string NAV::flow::GetCurrentFilename ()
 Get the current filename of the open flow.
std::filesystem::path NAV::flow::GetFlowPath ()
 Get the path where flow files are searched.
std::filesystem::path NAV::flow::GetInputPath ()
 Get the path where data files are searched.
ax::NodeEditor::LinkId NAV::flow::GetNextLinkId ()
 Generates a new link id.
ax::NodeEditor::NodeId NAV::flow::GetNextNodeId ()
 Generates a new node id.
ax::NodeEditor::PinId NAV::flow::GetNextPinId ()
 Generates a new pin id.
std::filesystem::path NAV::flow::GetOutputPath ()
 Get the path where logs and outputs are stored.
std::filesystem::path NAV::flow::GetProgramRootPath ()
 Get the program root path.
bool NAV::flow::HasUnsavedChanges ()
 Checks if the currently open flow has unsaved changes.
bool NAV::flow::InitializeAllNodes ()
 Initializes all nodes.
void NAV::flow::InitializeAllNodesAsync ()
 Initializes all nodes in a separate thread.
bool NAV::flow::LoadFlow (const std::string &filepath)
 Loads the flow from the specified file.
bool NAV::flow::LoadJson (const json &j, bool requestNewIds=false)
 Loads the nodes and links from the specified json object.
const std::vector< Node * > & NAV::flow::m_Nodes ()
 List of all registered Nodes.
void NAV::flow::SaveFlow (GlobalActions &globalAction)
 Saves the current flow into a file.
void NAV::flow::SaveFlowAs (const std::string &filepath)
 Saves the current flow into the specified file.
void NAV::flow::SetCurrentFilename (const std::string &newFilename)
 Set the current filename of the open flow.
void NAV::flow::SetOutputPath ()
 Set the path where logs and outputs are stored.
void NAV::flow::SetProgramRootPath (const std::filesystem::path &newRootPath)
 Set the program root path.
void NAV::flow::UpdateNode (Node *node)
 Update the provided node object.

Detailed Description

Save/Load the Nodes.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2020-12-16

Definition in file FlowManager.hpp.

Typedef Documentation

◆ json

using json

json namespace

Definition at line 23 of file FlowManager.hpp.