DDraceNetwork Docs
|
#include <console.h>
Classes | |
class | CChain |
class | CCommand |
class | CExecFile |
class | CExecutionQueueEntry |
class | CResult |
Public Member Functions | |
CConsole (int FlagMask) | |
~CConsole () | |
void | Init () override |
const CCommandInfo * | FirstCommandInfo (int AccessLevel, int FlagMask) const override |
const CCommandInfo * | GetCommandInfo (const char *pName, int FlagMask, bool Temp) override |
int | PossibleCommands (const char *pStr, int FlagMask, bool Temp, FPossibleCallback pfnCallback, void *pUser) override |
void | ParseArguments (int NumArgs, const char **ppArguments) override |
void | Register (const char *pName, const char *pParams, int Flags, FCommandCallback pfnFunc, void *pUser, const char *pHelp) override |
void | RegisterTemp (const char *pName, const char *pParams, int Flags, const char *pHelp) override |
void | DeregisterTemp (const char *pName) override |
void | DeregisterTempAll () override |
void | Chain (const char *pName, FChainCommandCallback pfnChainFunc, void *pUser) override |
void | StoreCommands (bool Store) override |
bool | LineIsValid (const char *pStr) override |
void | ExecuteLine (const char *pStr, int ClientId=-1, bool InterpretSemicolons=true) override |
void | ExecuteLineFlag (const char *pStr, int FlagMask, int ClientId=-1, bool InterpretSemicolons=true) override |
bool | ExecuteFile (const char *pFilename, int ClientId=-1, bool LogFailure=false, int StorageType=IStorage::TYPE_ALL) override |
void | Print (int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor=gs_ConsoleDefaultColor) const override |
void | SetTeeHistorianCommandCallback (FTeeHistorianCommandCallback pfnCallback, void *pUser) override |
void | SetUnknownCommandCallback (FUnknownCommandCallback pfnCallback, void *pUser) override |
void | InitChecksum (CChecksumData *pData) const override |
void | SetAccessLevel (int AccessLevel) override |
bool | Cheated () const override |
int | FlagMask () const override |
void | SetFlagMask (int FlagMask) override |
virtual void | Init ()=0 |
virtual const CCommandInfo * | FirstCommandInfo (int AccessLevel, int Flagmask) const =0 |
virtual const CCommandInfo * | GetCommandInfo (const char *pName, int FlagMask, bool Temp)=0 |
virtual int | PossibleCommands (const char *pStr, int FlagMask, bool Temp, FPossibleCallback pfnCallback=EmptyPossibleCommandCallback, void *pUser=nullptr)=0 |
virtual void | ParseArguments (int NumArgs, const char **ppArguments)=0 |
virtual void | Register (const char *pName, const char *pParams, int Flags, FCommandCallback pfnFunc, void *pUser, const char *pHelp)=0 |
virtual void | RegisterTemp (const char *pName, const char *pParams, int Flags, const char *pHelp)=0 |
virtual void | DeregisterTemp (const char *pName)=0 |
virtual void | DeregisterTempAll ()=0 |
virtual void | Chain (const char *pName, FChainCommandCallback pfnChainFunc, void *pUser)=0 |
virtual void | StoreCommands (bool Store)=0 |
virtual bool | LineIsValid (const char *pStr)=0 |
virtual void | ExecuteLine (const char *pStr, int ClientId=-1, bool InterpretSemicolons=true)=0 |
virtual void | ExecuteLineFlag (const char *pStr, int FlasgMask, int ClientId=-1, bool InterpretSemicolons=true)=0 |
virtual void | ExecuteLineStroked (int Stroke, const char *pStr, int ClientId=-1, bool InterpretSemicolons=true)=0 |
virtual bool | ExecuteFile (const char *pFilename, int ClientId=-1, bool LogFailure=false, int StorageType=IStorage::TYPE_ALL)=0 |
virtual void | Print (int Level, const char *pFrom, const char *pStr, ColorRGBA PrintColor=gs_ConsoleDefaultColor) const =0 |
virtual void | SetTeeHistorianCommandCallback (FTeeHistorianCommandCallback pfnCallback, void *pUser)=0 |
virtual void | SetUnknownCommandCallback (FUnknownCommandCallback pfnCallback, void *pUser)=0 |
virtual void | InitChecksum (CChecksumData *pData) const =0 |
virtual void | SetAccessLevel (int AccessLevel)=0 |
virtual bool | Cheated () const =0 |
virtual int | FlagMask () const =0 |
virtual void | SetFlagMask (int FlagMask)=0 |
Public Member Functions inherited from IInterface | |
IInterface () | |
virtual void | Shutdown () |
virtual | ~IInterface () |
Static Public Member Functions | |
static void | ConUserCommandStatus (IConsole::IResult *pResult, void *pUser) |
Static Public Member Functions inherited from IConsole | |
static const char * | InterfaceName () |
static void | EmptyPossibleCommandCallback (int Index, const char *pCmd, void *pUser) |
static bool | EmptyUnknownCommandCallback (const char *pCommand, void *pUser) |
static LEVEL | ToLogLevel (int ConsoleLevel) |
static int | ToLogLevelFilter (int ConsoleLevel) |
Private Types | |
enum | { CONSOLE_MAX_STR_LENGTH = 8192 , MAX_PARTS = (CONSOLE_MAX_STR_LENGTH + 1) / 2 } |
enum | { PARSEARGS_OK = 0 , PARSEARGS_MISSING_VALUE , PARSEARGS_INVALID_INTEGER , PARSEARGS_INVALID_FLOAT } |
Private Member Functions | |
void | ExecuteLineStroked (int Stroke, const char *pStr, int ClientId=-1, bool InterpretSemicolons=true) override |
int | ParseStart (CResult *pResult, const char *pString, int Length) |
int | ParseArgs (CResult *pResult, const char *pFormat, bool IsColor=false) |
char | NextParam (const char *&pFormat) |
void | AddCommandSorted (CCommand *pCommand) |
CCommand * | FindCommand (const char *pName, int FlagMask) |
Static Private Member Functions | |
static void | TraverseChain (FCommandCallback *ppfnCallback, void **ppUserData) |
static void | Con_Chain (IResult *pResult, void *pUserData) |
static void | Con_Echo (IResult *pResult, void *pUserData) |
static void | Con_Exec (IResult *pResult, void *pUserData) |
static void | ConCommandAccess (IResult *pResult, void *pUser) |
static void | ConCommandStatus (IConsole::IResult *pResult, void *pUser) |
Private Attributes | |
int | m_FlagMask |
bool | m_StoreCommands |
const char * | m_apStrokeStr [2] |
CCommand * | m_pFirstCommand |
CExecFile * | m_pFirstExec |
IStorage * | m_pStorage |
int | m_AccessLevel |
CCommand * | m_pRecycleList |
CHeap | m_TempCommands |
FTeeHistorianCommandCallback | m_pfnTeeHistorianCommandCallback |
void * | m_pTeeHistorianCommandUserdata |
FUnknownCommandCallback | m_pfnUnknownCommandCallback = EmptyUnknownCommandCallback |
void * | m_pUnknownCommandUserdata = nullptr |
std::vector< CExecutionQueueEntry > | m_vExecutionQueue |
bool | m_Cheated |
Additional Inherited Members | |
Public Types inherited from IConsole | |
enum | { OUTPUT_LEVEL_STANDARD = 0 , OUTPUT_LEVEL_ADDINFO , OUTPUT_LEVEL_DEBUG , ACCESS_LEVEL_ADMIN = 0 , ACCESS_LEVEL_MOD , ACCESS_LEVEL_HELPER , ACCESS_LEVEL_USER , TEMPCMD_NAME_LENGTH = 64 , TEMPCMD_HELP_LENGTH = 192 , TEMPCMD_PARAMS_LENGTH = 96 , CMDLINE_LENGTH = 512 , CLIENT_ID_GAME = -2 , CLIENT_ID_NO_GAME = -3 } |
typedef void(* | FTeeHistorianCommandCallback) (int ClientId, int FlagMask, const char *pCmd, IResult *pResult, void *pUser) |
typedef void(* | FPossibleCallback) (int Index, const char *pCmd, void *pUser) |
typedef void(* | FCommandCallback) (IResult *pResult, void *pUserData) |
typedef void(* | FChainCommandCallback) (IResult *pResult, void *pUserData, FCommandCallback pfnCallback, void *pCallbackUserData) |
typedef bool(* | FUnknownCommandCallback) (const char *pCommand, void *pUser) |
Protected Member Functions inherited from IInterface | |
IKernel * | Kernel () |
|
private |
CConsole::CConsole | ( | int | FlagMask | ) |
CConsole::~CConsole | ( | ) |
|
private |
|
overridevirtual |
Implements IConsole.
|
inlineoverridevirtual |
Implements IConsole.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overrideprivatevirtual |
Implements IConsole.
|
private |
|
overridevirtual |
Implements IConsole.
|
inlineoverridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
private |
|
private |
|
overridevirtual |
Implements IConsole.
|
private |
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
log_*
functions from base/log.h instead of this function for the following reasons:printf
-formatting without a separate buffer.IConsole
to be used. Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
inlineoverridevirtual |
Implements IConsole.
|
inlineoverridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
overridevirtual |
Implements IConsole.
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |