-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCbuildGen.h
67 lines (55 loc) · 1.3 KB
/
CbuildGen.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Copyright (c) 2020-2022 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef CBUILDGEN_H
#define CBUILDGEN_H
#include <cxxopts.hpp>
#include <string>
#include <vector>
class CbuildGen {
public:
/**
* @brief entry point for running cbuildgen
* @param argc command line argument count
* @param argv command line argument vector
* @param envp environment variables
*/
static int RunCbuildGen(int argc, char** argv, char** envp);
protected:
/**
* @brief class constructor
*/
CbuildGen(void);
/**
* @brief class destructor
*/
~CbuildGen(void);
/**
* @brief prints module name, version and copyright
* @param
*/
void Signature(void);
/**
* @brief print module's usage help
* @param
*/
void Usage(void);
/**
* @brief print command based usage
* @param cmdOptionsDict map of command and options
* @param cmd command for which usage is to be generated
* @param bAuxCmd flag true when the cmd is aux command, else false
* @return true if successful, otherwise false
*/
bool PrintUsage(
const std::map<std::string, std::pair<std::vector<cxxopts::Option>, std::string>>& cmdOptionsDict,
const std::string& cmd);
/**
* @brief print version info
* @param
*/
void ShowVersion(void);
};
#endif // PROJMGR_H