12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #ifndef PARAMETER_FLOW
- #define PARAMETER_FLOW
- #define IN
- #define OUT
- #define INOUT
- #endif
- #ifndef BASE_TYPE_DEF
- #define BASE_TYPE_DEF
- #include <stdint.h>
- typedef int16_t SHORT;
- typedef uint16_t USHORT;
- typedef int32_t INT;
- typedef uint32_t UINT;
- typedef int64_t DLONG;
- typedef uint64_t DULONG;
- typedef void VOID;
- typedef bool BOOL;
- typedef char CHAR;
- typedef unsigned char UCHAR;
- typedef float FLOAT;
- typedef double DOUBLE;
- #endif
- #include <string>
- #include <string.h>
- #include <utility>
- #include <vector>
- using std::make_pair;
- using std::pair;
- using std::string;
- using std::vector;
- class CShell
- {
- public:
-
- static pair<BOOL, string> exeShellCmd(IN const string& cmd = "", OUT INT* cmdReturnValue = nullptr);
-
- static pair<BOOL, string> exeShellCmd(IN const string& cmd, OUT vector<string>& results);
- };
|