Revision 38b22f7bf846544d8054ac93e1925a0209768ad6 authored by Konrad Werys on 08 August 2019, 11:35:05 UTC, committed by Konrad Werys on 08 August 2019, 11:35:05 UTC
1 parent ded8e4d
TomatoParser.h
/*!
* \file TomatoParser.h
* \author Konrad Werys
* \date 2018/08/19
*/
#ifndef Tomato_TomatoPARSER_H
#define Tomato_TomatoPARSER_H
#include <map>
#include <string>
#include <vector>
#include "CmakeConfigForTomato.h"
#ifdef USE_YAML
#include "yaml.h"
#include "KWUtil.h"
namespace Ox {
template<typename MeasureType>
class TomatoParser {
public:
typedef std::map<std::string, std::string> ScalarMapType;
typedef std::map<std::string, std::vector<std::string> > SequenceMapType;
std::string _filePath;
ScalarMapType _scalars;
SequenceMapType _sequences;
/**
* based on https://www.wpsoftware.net/andrew/pages/libyaml.html
* @return success/failure
*/
int parse();
void disp();
template< typename TYPE >
void printVector(std::vector<TYPE> myVector, std::string myVectorName);
};
} // namespace Ox
#ifdef TomatoLib_EXPORTS
#include "TomatoParser.hxx"
#endif //TomatoLib_EXPORTS
#endif //USE_YAML
#endif //Tomato_TomatoPARSER_H
Computing file changes ...