-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateModel.h
40 lines (32 loc) · 888 Bytes
/
CreateModel.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
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef CREATEMODEL_H
#define CREATEMODEL_H
#include "Validate.h"
#include "RteModelReader.h"
#include "PackChk.h"
#include <list>
#include <string>
#include <set>
#define PDSC_FEXT _T(".pdsc")
#define PDSC_FEXT_LEN 5
class CreateModel
{
public:
CreateModel(RteGlobalModel& rteModel);
~CreateModel();
bool CheckForOtherPdscFiles(const std::string& pdscFullPath);
bool AddPdsc(const std::string& pdscFile, bool bSkipCheckForOtherPdsc = false);
bool AddRefPdsc(const std::set<std::string>& pdscRefFiles);
bool SetPackXsd(const std::string& packXsdFile);
bool ReadAllPdsc();
bool PrintPdscFiles(std::list<std::string>& pdscFiles);
private:
RteModelReader m_reader;
std::string m_schemaFile;
bool m_validatePdsc = false;
};
#endif // CREATEMODEL_H