doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
idCmdArgs Class Reference

#include <CmdArgs.h>

Public Member Functions

 idCmdArgs (void)
 
 idCmdArgs (const char *text, bool keepAsStrings)
 
void operator= (const idCmdArgs &args)
 
int Argc (void) const
 
const char * Argv (int arg) const
 
const char * Args (int start=1, int end=-1, bool escapeArgs=false) const
 
void TokenizeString (const char *text, bool keepAsStrings)
 
void AppendArg (const char *text)
 
void Clear (void)
 
const char ** GetArgs (int *argc)
 

Private Attributes

int argc
 
char * argv [MAX_COMMAND_ARGS]
 
char tokenized [MAX_COMMAND_STRING]
 

Static Private Attributes

static const int MAX_COMMAND_ARGS = 64
 
static const int MAX_COMMAND_STRING = 2 * MAX_STRING_CHARS
 

Detailed Description

Definition at line 40 of file CmdArgs.h.

Constructor & Destructor Documentation

idCmdArgs::idCmdArgs ( void  )
inline

Definition at line 42 of file CmdArgs.h.

idCmdArgs::idCmdArgs ( const char *  text,
bool  keepAsStrings 
)
inline

Definition at line 43 of file CmdArgs.h.

Member Function Documentation

void idCmdArgs::AppendArg ( const char *  text)

Definition at line 177 of file CmdArgs.cpp.

int idCmdArgs::Argc ( void  ) const
inline

Definition at line 48 of file CmdArgs.h.

const char * idCmdArgs::Args ( int  start = 1,
int  end = -1,
bool  escapeArgs = false 
) const

Definition at line 52 of file CmdArgs.cpp.

const char* idCmdArgs::Argv ( int  arg) const
inline

Definition at line 50 of file CmdArgs.h.

void idCmdArgs::Clear ( void  )
inline

Definition at line 61 of file CmdArgs.h.

const char ** idCmdArgs::GetArgs ( int argc)

Definition at line 194 of file CmdArgs.cpp.

void idCmdArgs::operator= ( const idCmdArgs args)

Definition at line 37 of file CmdArgs.cpp.

void idCmdArgs::TokenizeString ( const char *  text,
bool  keepAsStrings 
)

Definition at line 106 of file CmdArgs.cpp.

Member Data Documentation

int idCmdArgs::argc
private

Definition at line 68 of file CmdArgs.h.

char* idCmdArgs::argv[MAX_COMMAND_ARGS]
private

Definition at line 69 of file CmdArgs.h.

const int idCmdArgs::MAX_COMMAND_ARGS = 64
staticprivate

Definition at line 65 of file CmdArgs.h.

const int idCmdArgs::MAX_COMMAND_STRING = 2 * MAX_STRING_CHARS
staticprivate

Definition at line 66 of file CmdArgs.h.

char idCmdArgs::tokenized[MAX_COMMAND_STRING]
private

Definition at line 70 of file CmdArgs.h.


The documentation for this class was generated from the following files: