MeLOn
gpParser.h
Go to the documentation of this file.
1 /**********************************************************************************
2 * Copyright (c) 2020 Process Systems Engineering (AVT.SVT), RWTH Aachen University
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License 2.0 which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
8 * SPDX-License-Identifier: EPL-2.0
9 *
10 * @file gpParser.h
11 *
12 * @brief File containing declaration of the Gaussian process parser classes.
13 *
14 **********************************************************************************/
15 
16 #pragma once
17 
18 #include <string> // std::string
19 #include <vector> // std::vector
20 #include <memory> // std::unique_ptr, std::shared_ptr
21 
22 #include "modelParser.h"
23 #include "gpData.h"
24 
25 namespace melon {
26 
31  class GpParser : public ModelParser {
32  public:
33 
43  std::shared_ptr<ModelData> parse_model(const std::string modelPath, const std::string modelName) override;
44  };
45 
50  class GpParserFactory : public ModelParserFactory {
51  public:
52 
60  std::unique_ptr<ModelParser> create_model_parser(const MODEL_FILE_TYPE fileType) override;
61  };
62 }
melon::MODEL_FILE_TYPE
MODEL_FILE_TYPE
Enum for representing the parsable filetypes.
Definition: modelParser.h:43
gpData.h
melon::GpParser::parse_model
std::shared_ptr< ModelData > parse_model(const std::string modelPath, const std::string modelName) override
Abstract function for defining the structure of the parsing function which is used to get the Gaussia...
Definition: gpParser.cpp:85
melon::GpParserFactory
This class is a factory class for creating child instances of GpParser.
Definition: gpParser.h:63
melon::GpParserFactory::create_model_parser
std::unique_ptr< ModelParser > create_model_parser(const MODEL_FILE_TYPE fileType) override
Factory function for creating a instance of an Gauusian process parser corresponding to the specified...
Definition: gpParser.cpp:74
melon::ModelParserFactory
This class is a abstract parent class for model parser factories implemented in the MeLOn library.
Definition: modelParser.h:112
melon
Definition: kernel.h:21
modelParser.h