|
Maki
Formally verfied low-code orchestration
|
Represents the save information for a flow. More...
#include <flow_info.h>
Public Member Functions | |
| FlowSaveInfo () | |
| Constructs an empty FlowSaveInfo object. | |
| FlowSaveInfo (const FlowConfig &config) | |
| Constructs a FlowSaveInfo object with the given configuration. | |
| QString | getid () const override |
| Gets the ID of the flow. | |
| QString | getname () const override |
| Gets the name of the flow. | |
| QString | getowner () const override |
| Gets the owner of the flow. | |
| bool | getmodifiable () const override |
| Checks if the flow is modifiable. | |
| int | getlinksTo () const override |
| Gets the number of links to the flow. | |
| Types::CallType | gettype () const override |
| Gets the type of the call. | |
| koda::types::TypeReference | getreturnType () const override |
| Gets the return type of the property. | |
| QVector< std::shared_ptr< IParameter > > | getarguments () const override |
| Gets the arguments of the flow. | |
| QVector< std::shared_ptr< INode > > | getnodes () const override |
| Gets the nodes of the flow. | |
| QVector< std::shared_ptr< ITransition > > | gettransitions () const override |
| Gets the transitions of the flow. | |
| QVector< std::shared_ptr< ITransition > > | gettransitions (const QString &id) const override |
| Gets the transitions of the flow coming from a specific node. | |
| void | setId (const QString &arg) |
| Sets the ID of the flow. | |
| void | setName (const QString &arg) |
| Sets the name of the flow. | |
| void | setOwner (const QString &arg) |
| Sets the owner of the flow. | |
| void | setModifiable (bool arg) |
| Sets whether the flow is modifiable. | |
| void | setLinksTo (int arg) |
| Sets the number of links to the flow. | |
| void | setType (Types::CallType arg) |
| Sets the type of the call. | |
| void | setReturnType (const koda::types::TypeReference &arg) |
| Sets the return type of the property. | |
| void | addArgument (std::shared_ptr< IParameter > arg) |
| Adds an argument to the flow. | |
| void | setArgument (uint32_t index, std::shared_ptr< IParameter > arg) |
| Sets an argument at a specific index in the flow. | |
| std::shared_ptr< IParameter > | getArgument (uint32_t index) |
| Gets an argument at a specific index in the flow. | |
| void | removeArgument (std::shared_ptr< IParameter > arg) |
| Removes an argument from the flow. | |
| void | addNode (std::shared_ptr< INode > arg) |
| Adds a node to the flow. | |
| void | removeNode (std::shared_ptr< INode > arg) |
| Removes a node from the flow. | |
| QJsonObject | toJson () const |
| Converts the flow save info to a JSON object. | |
Static Public Member Functions | |
| static FlowSaveInfo | fromJson (const QJsonObject &data) |
| Creates a FlowSaveInfo object from a JSON object. | |
Friends | |
| QDataStream & | operator<< (QDataStream &out, const FlowSaveInfo &info) |
| Overloads the << operator to serialize a FlowSaveInfo object to a QDataStream. | |
| QDataStream & | operator>> (QDataStream &in, FlowSaveInfo &info) |
| Overloads the >> operator to deserialize a FlowSaveInfo object from a QDataStream. | |
Represents the save information for a flow.
| FlowSaveInfo::FlowSaveInfo | ( | const FlowConfig & | config | ) |
Constructs a FlowSaveInfo object with the given configuration.
| config | The configuration to initialize the flow save info with. |
| void FlowSaveInfo::addArgument | ( | std::shared_ptr< IParameter > | arg | ) |
Adds an argument to the flow.
| arg | A shared pointer to an IParameter object representing the argument to add. |
| void FlowSaveInfo::addNode | ( | std::shared_ptr< INode > | arg | ) |
Adds a node to the flow.
| arg | A shared pointer to an INode object representing the node to add. |
|
static |
Creates a FlowSaveInfo object from a JSON object.
| data | The JSON object representing the flow save info. |
| std::shared_ptr< IParameter > FlowSaveInfo::getArgument | ( | uint32_t | index | ) |
Gets an argument at a specific index in the flow.
| index | The index of the argument to get. |
|
override |
Gets the arguments of the flow.
|
override |
Gets the ID of the flow.
|
override |
Gets the number of links to the flow.
|
override |
Checks if the flow is modifiable.
|
override |
Gets the name of the flow.
|
override |
Gets the nodes of the flow.
|
override |
Gets the owner of the flow.
|
override |
Gets the return type of the property.
|
override |
Gets the transitions of the flow.
|
override |
Gets the transitions of the flow coming from a specific node.
| id | The id of the node of interest. |
|
override |
Gets the type of the call.
| void FlowSaveInfo::removeArgument | ( | std::shared_ptr< IParameter > | arg | ) |
Removes an argument from the flow.
| arg | A shared pointer to an IParameter object representing the argument to remove. |
| void FlowSaveInfo::removeNode | ( | std::shared_ptr< INode > | arg | ) |
Removes a node from the flow.
| arg | A shared pointer to an INode object representing the node to remove. |
| void FlowSaveInfo::setArgument | ( | uint32_t | index, |
| std::shared_ptr< IParameter > | arg ) |
Sets an argument at a specific index in the flow.
| index | The index of the argument to set. |
| arg | A shared pointer to an IParameter object representing the new argument. |
| void FlowSaveInfo::setId | ( | const QString & | arg | ) |
Sets the ID of the flow.
| arg | The new ID for the flow. |
| void FlowSaveInfo::setLinksTo | ( | int | arg | ) |
Sets the number of links to the flow.
| arg | The new number of links for the flow. |
| void FlowSaveInfo::setModifiable | ( | bool | arg | ) |
Sets whether the flow is modifiable.
| arg | True if the flow should be modifiable, false otherwise. |
| void FlowSaveInfo::setName | ( | const QString & | arg | ) |
Sets the name of the flow.
| arg | The new name for the flow. |
| void FlowSaveInfo::setOwner | ( | const QString & | arg | ) |
Sets the owner of the flow.
| arg | The new owner for the flow. |
| void FlowSaveInfo::setReturnType | ( | const koda::types::TypeReference & | arg | ) |
Sets the return type of the property.
| arg | The new return type for the property. |
| void FlowSaveInfo::setType | ( | Types::CallType | arg | ) |
Sets the type of the call.
| arg | The new type of the call. |
| QJsonObject FlowSaveInfo::toJson | ( | ) | const |
|
friend |
Overloads the << operator to serialize a FlowSaveInfo object to a QDataStream.
| out | The QDataStream to write to. |
| info | The FlowSaveInfo object to serialize. |
|
friend |
Overloads the >> operator to deserialize a FlowSaveInfo object from a QDataStream.
| in | The QDataStream to read from. |
| info | The FlowSaveInfo object to deserialize into. |