Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Command.h File Reference

#include "RageTypes.h"

Go to the source code of this file.

Classes

class  Command
struct  Command::Arg
class  Commands

Defines

#define BeginHandleArgs   int iMaxIndexAccessed = 0;
#define GET_ARG(type, i)   iMaxIndexAccessed = max( i, iMaxIndexAccessed ); command.GetArg##type( i );
#define sArg(i)   GetArg<CString>(command,i,iMaxIndexAccessed)
#define fArg(i)   GetArg<float>(command,i,iMaxIndexAccessed)
#define iArg(i)   GetArg<int>(command,i,iMaxIndexAccessed)
#define bArg(i)   GetArg<bool>(command,i,iMaxIndexAccessed)
#define cArg(i)   GetColorArg(command,i,iMaxIndexAccessed)
#define EndHandleArgs   if( iMaxIndexAccessed != (int)command.m_vsArgs.size()-1 ) { IncorrectNumberArgsWarning( command, iMaxIndexAccessed ); }

Functions

void ParseCommands (const CString &sCmds, Commands &vCmdsOut)
Commands ParseCommands (const CString &sCmds)
void IncorrectNumberArgsWarning (const Command &command, int iMaxIndexAccessed)
template<class T> T GetArg (const Command &command, int iIndex, int &iMaxIndexAccessedOut)
RageColor GetColorArg (const Command &command, int iIndex, int &iMaxIndexAccessed)


Define Documentation

#define bArg  )     GetArg<bool>(command,i,iMaxIndexAccessed)
 

#define BeginHandleArgs   int iMaxIndexAccessed = 0;
 

#define cArg  )     GetColorArg(command,i,iMaxIndexAccessed)
 

#define EndHandleArgs   if( iMaxIndexAccessed != (int)command.m_vsArgs.size()-1 ) { IncorrectNumberArgsWarning( command, iMaxIndexAccessed ); }
 

#define fArg  )     GetArg<float>(command,i,iMaxIndexAccessed)
 

#define GET_ARG type,
 )     iMaxIndexAccessed = max( i, iMaxIndexAccessed ); command.GetArg##type( i );
 

#define iArg  )     GetArg<int>(command,i,iMaxIndexAccessed)
 

#define sArg  )     GetArg<CString>(command,i,iMaxIndexAccessed)
 


Function Documentation

template<class T>
T GetArg const Command command,
int  iIndex,
int iMaxIndexAccessedOut
[inline]
 

RageColor GetColorArg const Command command,
int  iIndex,
int iMaxIndexAccessed
[inline]
 

void IncorrectNumberArgsWarning const Command command,
int  iMaxIndexAccessed
 

Commands ParseCommands const CString &  sCmds  ) 
 

void ParseCommands const CString &  sCmds,
Commands vCmdsOut
 


Generated on Thu Jan 27 20:57:36 2005 for StepMania by doxygen 1.3.7