-
Notifications
You must be signed in to change notification settings - Fork 0
/
RteModelReader.h
53 lines (39 loc) · 959 Bytes
/
RteModelReader.h
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
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef RTEMODELREADER_H
#define RTEMODELREADER_H
#include "RteModel.h"
#include "RteValueAdjuster.h"
#include "RteItemBuilder.h"
#include "XMLTreeSlim.h"
#include "ErrLog.h"
class RteModelReaderErrorVistior : public RteVisitor
{
public:
virtual VISIT_RESULT Visit(RteItem* rteItem);
};
class ValueAdjuster : public RteValueAdjuster
{
public:
ValueAdjuster() {}
virtual std::string AdjustPath(const std::string& fileName, int lineNo);
bool CheckPath(const std::string& fileName, int lineNo);
private:
};
class RteModelReader
{
public:
RteModelReader(RteGlobalModel& m_rteModel);
~RteModelReader();
bool AddFile(const std::string& fileName);
bool ReadAll();
private:
RteGlobalModel& m_rteModel;
RteItemBuilder m_rteItemBuilder;
XMLTreeSlim m_xmlTree;
ValueAdjuster m_valueAdjuster;
};
#endif // RTEMODELREADER_H