This class is a abstract parent class for model parser implemented in the MeLOn library.
More...
#include <modelParser.h>
|
virtual std::shared_ptr< ModelData > | parse_model (const std::string modelPath, const std::string modelName="")=0 |
| Abstract function for defining the structure of the parsing function which is used to get the model data from a file.
|
|
virtual | ~ModelParser ()=default |
| Virtual desctructor to enable inheritance.
|
|
|
std::string | _format_file_path (const std::string modelPath, const std::string modelName, const MODEL_FILE_TYPE fileType) |
| Applies the correct format to the path given by the user.
|
|
std::string | _format_folder_path (const std::string modelPath) |
| Applies the correct format to the path given by the user.
|
|
This class is a abstract parent class for model parser implemented in the MeLOn library.
◆ ~ModelParser()
virtual melon::ModelParser::~ModelParser |
( |
| ) |
|
|
virtualdefault |
Virtual desctructor to enable inheritance.
◆ _format_file_path()
std::string ModelParser::_format_file_path |
( |
const std::string | modelPath, |
|
|
const std::string | modelName, |
|
|
const MODEL_FILE_TYPE | fileType ) |
|
protected |
Applies the correct format to the path given by the user.
- Parameters
-
[in] | modelPath | Path to the location of the model file |
[in] | modelName | name of the model |
[in] | fileType | type of the file |
- Returns
- returns string with correctly formatted filepath
◆ _format_folder_path()
std::string ModelParser::_format_folder_path |
( |
const std::string | modelPath | ) |
|
|
protected |
Applies the correct format to the path given by the user.
- Parameters
-
[in] | modelPath | Path to the location of the model folder |
- Returns
- returns string with correctly formatted filepath
◆ _string_to_scaler_parameter()
SCALER_PARAMETER ModelParser::_string_to_scaler_parameter |
( |
const std::string | scalerParameterName | ) |
|
|
staticprotected |
Turns a string containing the name of an scaler type in the correct enum representation.
- Parameters
-
[in] | scalerParameterName | is a string containing the name of the scaler parameter |
- Returns
- returns the enum representation of the input
◆ _string_to_scaler_type()
SCALER_TYPE ModelParser::_string_to_scaler_type |
( |
const std::string | scalerTypeName | ) |
|
|
staticprotected |
Turns a string containing the name of an scaler type in the correct enum representation.
- Parameters
-
[in] | scalerTypeName | is a string containing the name of the scaler type |
- Returns
- returns the enum representation of the input
◆ parse_model()
virtual std::shared_ptr< ModelData > melon::ModelParser::parse_model |
( |
const std::string | modelPath, |
|
|
const std::string | modelName = "" ) |
|
pure virtual |
◆ _modelName
std::string melon::ModelParser::_modelName |
|
protected |
◆ _modelPath
std::string melon::ModelParser::_modelPath |
|
protected |
Path to the location of the ANN file
The documentation for this class was generated from the following files: