0.4.00.4.10.4.2stable
|
Last change
on this file since 1fc246c was
a0528c4,
checked in by Michael Medin <michael@…>, 8 years ago
|
|
Initial release
|
-
Property mode set to
100644
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | #include "stdafx.h" |
|---|
| 2 | #include ".\nsparser.h" |
|---|
| 3 | #include "strEx.h" |
|---|
| 4 | //#include <PDHCollector.h> |
|---|
| 5 | //#include <PDHCollectors.h> |
|---|
| 6 | //#include <EnumNtSrv.h> |
|---|
| 7 | #include <utilities.h> |
|---|
| 8 | //#include <pdh.h> |
|---|
| 9 | //#include <pdhmsg.h> |
|---|
| 10 | |
|---|
| 11 | /* |
|---|
| 12 | #include "commands/CommandID.h" |
|---|
| 13 | #include "commands/NSCommandCLIENTVERSION.h" |
|---|
| 14 | #include "commands/NSCommandCPULOAD.h" |
|---|
| 15 | #include "commands/NSCommandMEMUSE.h" |
|---|
| 16 | #include "commands/NSCommandSERVICESTATE.h" |
|---|
| 17 | #include "commands/NSCommandUPTIME.h" |
|---|
| 18 | #include "commands/NSCommandUSEDDISKSPACE.h" |
|---|
| 19 | |
|---|
| 20 | using namespace PDHCollector; |
|---|
| 21 | |
|---|
| 22 | #define ADD_NS_COMMAND(cls) \ |
|---|
| 23 | if (cls::getCommandID() == cmdID) \ |
|---|
| 24 | return cls::execute(args); |
|---|
| 25 | */ |
|---|
| 26 | std::string NSParser::execute(int cmdID, std::list<std::string> args) |
|---|
| 27 | { |
|---|
| 28 | /* |
|---|
| 29 | ADD_NS_COMMAND(NSCommandCLIENTVERSION); // 1 |
|---|
| 30 | ADD_NS_COMMAND(NSCommandCPULOAD); // 2 |
|---|
| 31 | ADD_NS_COMMAND(NSCommandUPTIME); // 3 |
|---|
| 32 | ADD_NS_COMMAND(NSCommandUSEDDISKSPACE); // 4 |
|---|
| 33 | ADD_NS_COMMAND(NSCommandSERVICESTATE); // 5 |
|---|
| 34 | // 6 |
|---|
| 35 | ADD_NS_COMMAND(NSCommandMEMUSE); // 7 |
|---|
| 36 | // 8 |
|---|
| 37 | // 9 |
|---|
| 38 | // 10 |
|---|
| 39 | */ |
|---|
| 40 | return "ERROR: Invalid command."; |
|---|
| 41 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.