OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
Command Class Referenceabstract

#include <Command.h>

Inheritance diagram for Command:
[legend]
Collaboration diagram for Command:
[legend]

Public Member Functions

virtual ~Command ()
 
virtual std::string name ()=0
 
virtual std::string brief ()=0
 
virtual void printHelp ()
 
virtual int execute (std::istream &args)=0
 

Static Public Member Functions

static void fillCommandList ()
 
static int command (std::string c)
 
static int executeFile (std::string file)
 
static std::string autoComplete (std::string begin)
 

Static Private Attributes

static std::vector< std::shared_ptr< Command > > commands
 

Detailed Description

Definition at line 16 of file Command.h.

Constructor & Destructor Documentation

Command::~Command ( )
virtual

Definition at line 21 of file Command.cpp.

Member Function Documentation

virtual std::string Command::name ( )
pure virtual
virtual std::string Command::brief ( )
pure virtual
void Command::printHelp ( )
virtual

Reimplemented in CommandScreenshot, CommandGet, CommandBind, CommandLoad, and CommandSet.

Definition at line 24 of file Command.cpp.

virtual int Command::execute ( std::istream &  args)
pure virtual
void Command::fillCommandList ( )
static

Definition at line 28 of file Command.cpp.

int Command::command ( std::string  c)
static

Definition at line 38 of file Command.cpp.

int Command::executeFile ( std::string  file)
static

Definition at line 99 of file Command.cpp.

std::string Command::autoComplete ( std::string  begin)
static

Definition at line 122 of file Command.cpp.

Member Data Documentation

std::vector< std::shared_ptr< Command > > Command::commands
staticprivate

Definition at line 30 of file Command.h.


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