-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuxCmd.h
38 lines (31 loc) · 902 Bytes
/
AuxCmd.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
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// AuxCmd.h
#ifndef AUXCMD_H
#define AUXCMD_H
#include <list>
#include <string>
#define AUX_MKDIR 1
#define AUX_RMDIR 2
#define AUX_TOUCH 3
class AuxCmd {
public:
AuxCmd(void);
~AuxCmd(void);
/**
* @brief run auxiliary command
* @param cmd integer command identifier
* @param params list of command parameters
* @param except string path to the directories not to be removed
* @return true if command executed successfully, otherwise false
*/
bool RunAuxCmd(int cmd, const std::list<std::string>& params, const std::string& except);
protected:
bool MkdirCmd(const std::list<std::string>& params);
bool RmdirCmd(const std::list<std::string>& params, const std::string& except);
bool TouchCmd(const std::list<std::string>& params);
};
#endif // AUXCMD_H