Phasor  01.00.10.059
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
commands::CArgParser Class Reference

#include <Commands.h>

Public Member Functions

 CArgParser (const std::vector< std::string > &args, const std::string &function, size_t start_index)
 
size_t size () const
 
std::string ReadString (size_t min=0, size_t max=0)
 
std::wstring ReadWideString (size_t min=0, size_t max=0)
 
std::string ReadStringOneOf (const std::vector< std::string > &opts, bool ignorecase=false)
 
std::wstring ReadWideStringOneOf (const std::vector< std::string > &opts, bool ignorecase=false)
 
int ReadInt (int min=INT_MIN, int max=INT_MAX)
 
unsigned int ReadUInt (unsigned int min=0, unsigned int max=UINT_MAX)
 
double ReadDouble (double min=-DBL_MAX, double max=DBL_MAX)
 
float ReadFloat (float min=-FLT_MAX, float max=FLT_MAX)
 
bool ReadBool ()
 
halo::s_playerReadPlayer ()
 
std::string ReadPlayerHash ()
 
std::string ReadPlayerOrHash ()
 

Constructor & Destructor Documentation

commands::CArgParser::CArgParser ( const std::vector< std::string > &  args,
const std::string &  function,
size_t  start_index 
)
explicit

Member Function Documentation

bool commands::CArgParser::ReadBool ( )
double commands::CArgParser::ReadDouble ( double  min = -DBL_MAX,
double  max = DBL_MAX 
)
float commands::CArgParser::ReadFloat ( float  min = -FLT_MAX,
float  max = FLT_MAX 
)
int commands::CArgParser::ReadInt ( int  min = INT_MIN,
int  max = INT_MAX 
)
halo::s_player & commands::CArgParser::ReadPlayer ( )
std::string commands::CArgParser::ReadPlayerHash ( )
std::string commands::CArgParser::ReadPlayerOrHash ( )
std::string commands::CArgParser::ReadString ( size_t  min = 0,
size_t  max = 0 
)
std::string commands::CArgParser::ReadStringOneOf ( const std::vector< std::string > &  opts,
bool  ignorecase = false 
)
unsigned int commands::CArgParser::ReadUInt ( unsigned int  min = 0,
unsigned int  max = UINT_MAX 
)
std::wstring commands::CArgParser::ReadWideString ( size_t  min = 0,
size_t  max = 0 
)
std::wstring commands::CArgParser::ReadWideStringOneOf ( const std::vector< std::string > &  opts,
bool  ignorecase = false 
)
size_t commands::CArgParser::size ( ) const
inline

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