PRepr.pdata 1.28 KB
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
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

#include <string>
#include <vector>

///@brief Dimention of a tensor configuration
PDimention{
	///Name of the variable associated to this dimention
	std::string name;
	///Fixed value of the dimention
	size_t value;
	///True if the Dimention is a fixed value
	bool isValue;
}

///@brief Attribute of a generated class
PAttribute{
	///Name of the attribute
	std::string name;
	///Name of the associated column
	std::string colName;
	///Type of the column
	std::string type;
	///Documentation string
	std::string docString;
	///Vector of all dimention if the attribute is a tensor
Pierre Aubert's avatar
Pierre Aubert committed
26
	std::vector<PDimention> vecDim;
Pierre Aubert's avatar
Pierre Aubert committed
27 28 29 30 31 32 33 34 35 36
}

///@brief Generated DataSet class
PTable{
	///Name of the generated class
	std::string name;
	///Name of the corresponding DataSet
	std::string dataSetName;
	///Name of the variable which describes the number of entries (or row) of the current PTable (or DataSet)
	std::string varNbEntry;
Pierre Aubert's avatar
Pierre Aubert committed
37 38
	///Documentation string of the current PTable
	std::string docString;
Pierre Aubert's avatar
Pierre Aubert committed
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
	///Vector of all the attributes of the PTable
	std::vector<PAttribute> vecAttribute;
}

///@brief Configuration file which will produce a source and header in C++
PSource{
	///Name of the source file (without extention)
	std::string name;
	///Vector of all tables describes in the current PSource
	std::vector<PTable> vecTable;
}