OregonCore  revision 3611e8a-git
Your Favourite TBC server
CliCommandHolder Struct Reference

#include <World.h>

Public Types

typedef void Print(void *, const char *)
 
typedef void CommandFinished(void *, bool success)
 

Public Member Functions

 CliCommandHolder (void *callbackArg, const char *command, Print *zprint, CommandFinished *commandFinished)
 
 ~CliCommandHolder ()
 

Public Attributes

void * m_callbackArg
 
char * m_command
 
Printm_print
 
CommandFinishedm_commandFinished
 

Detailed Description

Definition at line 414 of file World.h.

Member Typedef Documentation

typedef void CliCommandHolder::CommandFinished(void *, bool success)

Definition at line 417 of file World.h.

typedef void CliCommandHolder::Print(void *, const char *)

Definition at line 416 of file World.h.

Constructor & Destructor Documentation

CliCommandHolder::CliCommandHolder ( void *  callbackArg,
const char *  command,
Print zprint,
CommandFinished commandFinished 
)
inline

Definition at line 425 of file World.h.

426  : m_callbackArg(callbackArg), m_print(zprint), m_commandFinished(commandFinished)
427  {
428  size_t len = strlen(command) + 1;
429  m_command = new char[len];
430  memcpy(m_command, command, len);
431  }
CommandFinished * m_commandFinished
Definition: World.h:423
char * m_command
Definition: World.h:420
Print * m_print
Definition: World.h:421
void * m_callbackArg
Definition: World.h:419
CliCommandHolder::~CliCommandHolder ( )
inline

Definition at line 433 of file World.h.

References m_command.

434  {
435  delete[] m_command;
436  }
char * m_command
Definition: World.h:420

Member Data Documentation

void* CliCommandHolder::m_callbackArg

Definition at line 419 of file World.h.

Referenced by World::ProcessCliCommands().

char* CliCommandHolder::m_command

Definition at line 420 of file World.h.

Referenced by World::ProcessCliCommands(), and ~CliCommandHolder().

CommandFinished* CliCommandHolder::m_commandFinished

Definition at line 423 of file World.h.

Referenced by World::ProcessCliCommands().

Print* CliCommandHolder::m_print

Definition at line 421 of file World.h.

Referenced by World::ProcessCliCommands().


The documentation for this struct was generated from the following file: