diff options
Diffstat (limited to 'core/src/Model/Workflow/Workflow.hpp')
-rw-r--r-- | core/src/Model/Workflow/Workflow.hpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/core/src/Model/Workflow/Workflow.hpp b/core/src/Model/Workflow/Workflow.hpp index c156582..3c4d320 100644 --- a/core/src/Model/Workflow/Workflow.hpp +++ b/core/src/Model/Workflow/Workflow.hpp @@ -193,14 +193,15 @@ protected: class Workflow : public Asset { + friend class WorkflowNode; + friend class WorkflowEvaluationContext; + class Private; + public: using CategoryType = WorkflowAssetList; static constinit const WorkflowAssetList Category; private: - friend class WorkflowNode; - friend class WorkflowEvaluationContext; - std::vector<WorkflowConnection> mConnections; std::vector<std::unique_ptr<WorkflowNode>> mNodes; std::vector<std::unique_ptr<BaseValue>> mConstants; @@ -279,13 +280,8 @@ public: /* Serialization */ - enum ReadResult - { - RR_Success, - RR_InvalidVersion, - }; - ReadResult ReadFrom(std::istream& stream); - void WriteTo(std::ostream& stream) const; + void ReadFromDataStream(InputDataStream& stream); + void WriteToDataStream(OutputDataStream& stream) const; private: std::pair<WorkflowConnection&, uint32_t> AllocWorkflowConnection(); |