-
Notifications
You must be signed in to change notification settings - Fork 0
/
SvdModel.h
53 lines (41 loc) · 1.4 KB
/
SvdModel.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) 2010-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef SvdModel_H
#define SvdModel_H
#include "SvdItem.h"
#include <string>
#include <list>
class SvdDevice;
class XMLTreeElement;
class SvdModel : public SvdItem {
public:
SvdModel(SvdItem* parent);
virtual ~SvdModel();
bool Construct (XMLTreeElement* xmlTree);
bool CalculateModel ();
virtual bool Validate();
virtual bool CopyItem(SvdItem *from) { return 0; }
virtual bool CheckItem();
const std::string& GetInputFileName () { return m_inputFileName; }
bool SetInputFileName (const std::string& inputFileName) { m_inputFileName = inputFileName; return true; }
bool SetShowMissingEnums () { m_showMissingEnums = true; return true; }
bool GetShowMissingEnums () { return m_showMissingEnums; }
SvdDevice* GetDevice () const { return m_device; }
protected:
private:
SvdDevice *m_device;
bool m_showMissingEnums;
std::string m_inputFileName;
};
class SvdModelCalculate : public SvdVisitor
{
public:
SvdModelCalculate() { };
~SvdModelCalculate() {};
virtual VISIT_RESULT Visit(SvdItem* item);
private:
};
#endif // SvdModel_H