- added StackCreator
git-svn-id: http://moon:8086/svn/software/trunk/projects/Rbm@823 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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 <jsoncpp/json/json.h>
|
||||
#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 */
|
||||
|
||||
Reference in New Issue
Block a user