This class implements an specialization of the AnnParser for xml files.
More...
#include <AnnParser.h>
|
std::shared_ptr< ModelData > | parse_model (const std::string modelPath, const std::string modelName) |
| Parsing function which is used to get the ANN data from a xml file.
|
|
virtual | ~ModelParser ()=default |
| Virtual desctructor to enable inheritance.
|
|
This class implements an specialization of the AnnParser for xml files.
This abstarct class is used to implement an ANN file parser for xml files based on the interface provided by AnnParser.
◆ _parse_vector_double()
Parses child elements of an xml element into an vector of double.
- Parameters
-
[in] | parentElement | pointer to xml element whose child should get parsed |
[in] | vectorName | name of the child elements in the xml file |
[out] | vector | vector containing the parsed values |
- Returns
- tinyxml2 error code indicating wether parsing was succesfull
◆ _parse_vector_int()
Parses child elements of an xml element into an vector of int.
- Parameters
-
[in] | parentElement | pointer to xml element whose child should get parsed |
[in] | vectorName | name of the child elements in the xml file |
[out] | vector | vector containing the parsed values |
- Returns
- tinyxml2 error code indicating wether parsing was succesfull
◆ parse_model()
std::shared_ptr< ModelData > AnnParserXml::parse_model |
( |
const std::string | modelPath, |
|
|
const std::string | modelName ) |
|
virtual |
Parsing function which is used to get the ANN data from a xml file.
- Parameters
-
[in] | modelPath | Path to the location of the ANN file |
[in] | modelName | name of the network (name of the xml file) |
- Returns
- returns modelData struct containing the information defining the ann
Implements melon::AnnParser.
The documentation for this class was generated from the following files:
- C:/Data/Git/MeLOn/feedforward neural network/model/inc/AnnParser.h
- C:/Data/Git/MeLOn/feedforward neural network/model/src/AnnParserXML.cpp