-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjMgrParser.cpp
88 lines (68 loc) · 2.33 KB
/
ProjMgrParser.cpp
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "ProjMgrParser.h"
#include "ProjMgrYamlParser.h"
#include <iostream>
#include <string>
using namespace std;
// Parser class for public interfacing
// ParseCsolution and ParseCproject are forwarded to the implementation class
ProjMgrParser::ProjMgrParser(void) {
// Reserved
}
ProjMgrParser::~ProjMgrParser(void) {
// Reserved
}
bool ProjMgrParser::ParseCdefault(const string& input, bool checkSchema) {
// Parse solution file
return ProjMgrYamlParser().ParseCdefault(input, m_cdefault, checkSchema);
}
bool ProjMgrParser::ParseCsolution(const string& input, bool checkSchema) {
// Parse solution file
return ProjMgrYamlParser().ParseCsolution(input, m_csolution, checkSchema);
}
bool ProjMgrParser::ParseCproject(const string& input, bool checkSchema, bool single) {
// Parse project
return ProjMgrYamlParser().ParseCproject(
input, m_csolution, m_cprojects, single, checkSchema);
}
bool ProjMgrParser::ParseClayer(const string& input, bool checkSchema) {
// Parse layer file
return ProjMgrYamlParser().ParseClayer(input, m_clayers, checkSchema);
}
bool ProjMgrParser::ParseGenericClayer(const string& input, bool checkSchema) {
// Parse generic layer file
return ProjMgrYamlParser().ParseClayer(input, m_genericClayers, checkSchema);
}
bool ProjMgrParser::ParseCbuildSet(const string& input, bool checkSchema) {
// Parse cbuild-set file
return ProjMgrYamlParser().ParseCbuildSet(input, m_cbuildSet, checkSchema);
}
bool ProjMgrParser::ParseGlobalGenerator(const string& input, bool checkSchema) {
// Parse generic layer file
return ProjMgrYamlParser().ParseGlobalGenerator(input, m_globalGenerators, checkSchema);
}
CdefaultItem& ProjMgrParser::GetCdefault(void) {
return m_cdefault;
}
CsolutionItem& ProjMgrParser::GetCsolution(void) {
return m_csolution;
}
map<string, CprojectItem>& ProjMgrParser::GetCprojects(void) {
return m_cprojects;
}
map<string, ClayerItem>& ProjMgrParser::GetClayers(void) {
return m_clayers;
}
map<string, ClayerItem>& ProjMgrParser::GetGenericClayers(void) {
return m_genericClayers;
}
CbuildSetItem& ProjMgrParser::GetCbuildSetItem(void) {
return m_cbuildSet;
}
map<string, GlobalGeneratorItem>& ProjMgrParser::GetGlobalGenerators(void) {
return m_globalGenerators;
}