7 #include "SimanticsDataParser.h"
8 #include "SimanticsDataLexer.h"
16 struct DATABOARD_API strTypeDefinition {
20 std::string writeOut();
23 //DataType* parse(pANTLR3_BASE_TREE tree, DataType* parent = NULL, int indent = 0);
24 //bool addToChildren(DataType* parent, char* name, DataType* children);
25 //Range* parseRange(pANTLR3_BASE_TREE tree, int minPos, int maxPos);
26 //void parseParameters(pANTLR3_BASE_TREE tree, DataType* type);
28 class DATABOARD_API DataBoardRepository {
31 DataBoardRepository();
32 virtual ~DataBoardRepository();
35 strTypeDefinition getDataBoard(int i);
36 DataType* getDataBoard(std::string name);
38 bool open(std::string fileName);
40 const strTypeDefinition* get(std::string name);
42 void addDataBoard(char* name, DataType* dataBoard);
47 std::vector<strTypeDefinition> dataBoards;
51 //DataType* parse(pANTLR3_BASE_TREE tree, DataType* parent = NULL, int indent = 0);
52 //bool addToChildren(DataType* parent, char* name, DataType* children);
53 //Range* parseRange(pANTLR3_BASE_TREE tree, int minPos, int maxPos);
54 //void parseParameters(pANTLR3_BASE_TREE tree, DataType* type);
57 void print(pANTLR3_BASE_TREE tree, int indent = 0);
62 class DATABOARD_API temporaryname {
65 temporaryname(DataBoardRepository* dataBoardRepository);
66 virtual ~temporaryname();
68 DataType* parse(pANTLR3_BASE_TREE tree, DataType* parent = NULL, int indent = 0);
73 Range* parseRange(pANTLR3_BASE_TREE tree, int minPos, int maxPos);
74 bool addToChildren(DataType* parent, char* name, DataType* children);
76 void parseParameters(pANTLR3_BASE_TREE tree, DataType* type);
79 DataBoardRepository* dataBoardRepository;