1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef RVC_SPSHELL_CONSOEL_H_
- #define RVC_SPSHELL_CONSOEL_H_
- #pragma once
- #include "TelnetServer.h"
- #include <map>
- using namespace std;
- class CSpShellConsole : public CTelnetServer
- {
- public:
- CSpShellConsole(void);
- ~CSpShellConsole(void);
- bool HasSubLogCnn();
- void OutputLog(int nLogEntityID, const char *pLogEntity, const char *pMsg);
- CSpShellConsole(const CSpShellConsole &rhs);
- CSpShellConsole& operator=(const CSpShellConsole &rhs);
- string GetPromptString();
- string GetHelloString();
- bool ParseCmdLine(int nConnectionID, const char *pCmdLine, string &strReplyMsg);
- const char* GetStateName(int state);
- string PrintfHelp(const char *pCmd);
- string StartEntity(const char *pEntityName, const char* pCmdLine = NULL);
- string StopEntity(const char *pEntityName);
- string PauseEntity(const char *pEntityName);
- string ContinueEntity(const char *pEntityName);
- string TerminateEntity(const char *pEntityName);
- string SetEntityLost(const char *pEntityName); // only for test
- string TestEntity(const char* pEntityName);
- string BlueScreen(const char *pMsg);
- string UnBlueScreen();
- string ListAllEntitys();
- string ShutdownSpShell();
- string SetLogOn(int nConnectionID, const char *pEntityName);
- string SetLogOff(int nConnectionID, const char *pEntityName);
- string ShowSysVar();
- static string GetEntityLogPath(const char* pEntityName);
- static string GetEntityRTPath(const char* pEntityName);
- static string GetRootConfigPath();
- static string GetTempPath();
- static int RestartApplication();
- private:
- map<int, UINT64> m_SubLogCnns;
- };
- #endif /*RVC_SPSHELL_CONSOEL_H_*/
|