Public Member Functions | Private Attributes | Static Private Attributes | List of all members
gte::Command Class Reference

#include <GteCommand.h>

Public Member Functions

 Command (int numArguments, char const *arguments[])
 
int ExcessArguments () const
 
int GetBoolean (std::string const &name)
 
int GetBoolean (std::string const &name, bool &value)
 
int GetDouble (std::string const &name, double &value)
 
int GetFilename (std::string &value, int startArgIndex=1)
 
int GetFloat (std::string const &name, float &value)
 
int GetInteger (std::string const &name, int &value)
 
std::string GetLastError () const
 
int GetString (std::string const &name, std::string &value)
 
CommandInf (double value)
 
CommandMax (double value)
 
CommandMin (double value)
 
CommandSup (double value)
 
 ~Command ()
 

Private Attributes

std::vector< std::stringmArguments
 
bool mInfSet
 
double mLarge
 
std::string mLastError
 
bool mMaxSet
 
bool mMinSet
 
std::vector< bool > mProcessed
 
double mSmall
 
bool mSupSet
 

Static Private Attributes

static std::string const msArgOutOfRange
 
static std::string const msArgRequired
 
static std::string const msDash
 
static std::string const msFilenameNotFound
 
static std::string const msOptNotFound
 

Detailed Description

Definition at line 17 of file GteCommand.h.

Constructor & Destructor Documentation

Command::~Command ( )

Definition at line 20 of file GteCommand.cpp.

Command::Command ( int  numArguments,
char const *  arguments[] 
)

Definition at line 24 of file GteCommand.cpp.

Member Function Documentation

int Command::ExcessArguments ( ) const

Definition at line 49 of file GteCommand.cpp.

int Command::GetBoolean ( std::string const &  name)

Definition at line 91 of file GteCommand.cpp.

int Command::GetBoolean ( std::string const &  name,
bool &  value 
)

Definition at line 97 of file GteCommand.cpp.

int Command::GetDouble ( std::string const &  name,
double &  value 
)

Definition at line 217 of file GteCommand.cpp.

int Command::GetFilename ( std::string value,
int  startArgIndex = 1 
)

Definition at line 296 of file GteCommand.cpp.

int Command::GetFloat ( std::string const &  name,
float &  value 
)

Definition at line 170 of file GteCommand.cpp.

int Command::GetInteger ( std::string const &  name,
int value 
)

Definition at line 123 of file GteCommand.cpp.

std::string Command::GetLastError ( ) const

Definition at line 321 of file GteCommand.cpp.

int Command::GetString ( std::string const &  name,
std::string value 
)

Definition at line 264 of file GteCommand.cpp.

Command & Command::Inf ( double  value)

Definition at line 77 of file GteCommand.cpp.

Command & Command::Max ( double  value)

Definition at line 70 of file GteCommand.cpp.

Command & Command::Min ( double  value)

Definition at line 63 of file GteCommand.cpp.

Command & Command::Sup ( double  value)

Definition at line 84 of file GteCommand.cpp.

Member Data Documentation

std::vector<std::string> gte::Command::mArguments
private

Definition at line 57 of file GteCommand.h.

bool gte::Command::mInfSet
private

Definition at line 65 of file GteCommand.h.

double gte::Command::mLarge
private

Definition at line 62 of file GteCommand.h.

std::string gte::Command::mLastError
private

Definition at line 69 of file GteCommand.h.

bool gte::Command::mMaxSet
private

Definition at line 64 of file GteCommand.h.

bool gte::Command::mMinSet
private

Definition at line 63 of file GteCommand.h.

std::vector<bool> gte::Command::mProcessed
private

Definition at line 58 of file GteCommand.h.

std::string const Command::msArgOutOfRange
staticprivate

Definition at line 72 of file GteCommand.h.

std::string const Command::msArgRequired
staticprivate

Definition at line 71 of file GteCommand.h.

std::string const Command::msDash
staticprivate

Definition at line 74 of file GteCommand.h.

std::string const Command::msFilenameNotFound
staticprivate

Definition at line 73 of file GteCommand.h.

double gte::Command::mSmall
private

Definition at line 61 of file GteCommand.h.

std::string const Command::msOptNotFound
staticprivate

Definition at line 70 of file GteCommand.h.

bool gte::Command::mSupSet
private

Definition at line 66 of file GteCommand.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:05