Blame view

src/expressionParser/ParserResultFileWriter.hh 740 Bytes
aae52524   Benjamin Renard   Parser: Write res...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * ParserResultFileWriter.hh
 *
 *  Created on: 29 apr. 2019
 *      Author: AKKA
 */

#ifndef PARSERRESULTFILEWRITER_HH_
#define PARSERRESULTFILEWRITER_HH_

#include <libxml/xmlwriter.h>
#include <string>
#include <vector>

namespace AMDA {
namespace parser {

class ParserResultFileWriter {
public:
	struct ParserResult {
		ParserResult() : ihmExpression(""), kernelExpression(""), paramsList(), parseSuccess(false) {}
		std::string              ihmExpression;
		std::string              kernelExpression;
		std::vector<std::string> paramsList;
		bool                     parseSuccess;
	};

	static bool write(const char* filePath, std::vector<ParserResult>& parserResults);
};

} /* namespace parser */
} /* namespace AMDA */

#endif