-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParseOptions.h
49 lines (39 loc) · 1.16 KB
/
ParseOptions.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
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef PARSEOPTIONS_H
#define PARSEOPTIONS_H
#include "PackOptions.h"
#include <string>
class ParseOptions {
public:
ParseOptions(CPackOptions& packOptions);
~ParseOptions();
enum class Result {
Ok = 0,
ExitNoError,
Error,
};
Result Parse(int argc, const char* argv[]);
protected:
bool SetWarnLevel(const std::string& warnLevel);
bool SetPedantic(const std::string& pedanticLevel);
bool SetTestPdscFile(const std::string& filename);
bool SetLogFile(const std::string& m_logFile);
bool SetXsdFile();
bool SetXsdFile(const std::string& m_xsdFile);
bool AddDiagSuppress(const std::string& suppress);
bool AddRefPackFile(const std::string& includeFile);
bool SetPackNamePath(const std::string& packNamePath);
bool SetCheckSvd(bool bCheck);
bool SetUrlRef(const std::string& urlRef);
bool SetVerbose(bool bVerbose);
bool SetIgnoreOtherPdscFiles(bool bIgnore);
bool SetAllowSuppresssError(bool bAllow = true);
bool SetDisableValidation(bool bDisable);
private:
CPackOptions& m_packOptions;
};
#endif // PARSEOPTIONS_H