/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: StackCreator.hpp * Author: jens * * Created on 17. Januar 2022, 18:04 */ #ifndef STACKCREATOR_HPP #define STACKCREATOR_HPP #include #include "AStack.hpp" class StackCreator { public: static AStack* fromFile(const std::string &dir, const std::string &name, LayerConstructor *pLayerConstructor=nullptr); static AStack* fromJson(Json::Value &project, LayerConstructor *pLayerConstructor=nullptr); static bool toFile(AStack *pStack, const std::string &dir, const std::string &name); private: StackCreator(); StackCreator(const StackCreator& orig) = delete; virtual ~StackCreator(); }; #endif /* STACKCREATOR_HPP */