29#ifndef CMD_LINE_PARSER_INCLUDED
30#define CMD_LINE_PARSER_INCLUDED
57 virtual int read(
char **argv ,
int argc );
61 template<
class Type >
76 int read(
char **argv ,
int argc );
80 template<
class Type ,
int Dim >
92 int read(
char **argv ,
int argc );
96 template<
class Type >
114 int read(
char **argv ,
int argc );
117#if defined( _WIN32 ) || defined( _WIN64 )
128 std::string
ToUpper(
const std::string &str );
131 std::string
ToLower(
const std::string &str );
137 std::vector< std::string >
ReadWords(
const std::string &fileName );
146 std::string
GetFileName(
const std::string &directory ,
const std::string &localFileName );
Definition: cmdLineParser.h:82
int read(char **argv, int argc)
Definition: cmdLineParser.inl:77
Type values[Dim]
Definition: cmdLineParser.h:85
CmdLineParameterArray(const std::string &name, const Type *v=NULL)
Definition: cmdLineParser.inl:70
Definition: cmdLineParser.h:63
Type value
Definition: cmdLineParser.h:66
CmdLineParameter(const std::string &name)
Definition: cmdLineParser.inl:50
int read(char **argv, int argc)
Definition: cmdLineParser.inl:55
Definition: cmdLineParser.h:98
int count
Definition: cmdLineParser.h:101
~CmdLineParameters(void)
Definition: cmdLineParser.inl:95
Type * values
Definition: cmdLineParser.h:104
int read(char **argv, int argc)
Definition: cmdLineParser.inl:103
CmdLineParameters(const std::string &name)
Definition: cmdLineParser.inl:92
Definition: cmdLineParser.h:41
std::string name
Definition: cmdLineParser.h:47
bool set
Definition: cmdLineParser.h:44
virtual int read(char **argv, int argc)
Definition: cmdLineParser.inl:45
virtual ~CmdLineReadable(void)
Definition: cmdLineParser.inl:43
CmdLineReadable(const std::string &name)
Definition: cmdLineParser.inl:41
CmdLineReadable * params[]
Definition: main1.cpp:37
std::string GetFileDirectory(const std::string &fileName)
Definition: cmdLineParser.inl:183
void CmdLineParse(int argc, char **argv, CmdLineReadable **params)
Definition: cmdLineParser.inl:125
std::string ToLower(const std::string &str)
Definition: cmdLineParser.inl:158
static const char FileSeparator
Definition: cmdLineParser.h:120
std::string GetLocalFileName(const std::string &fileName)
Definition: cmdLineParser.inl:175
std::string ToUpper(const std::string &str)
Definition: cmdLineParser.inl:149
std::string GetFileName(const std::string &directory, const std::string &localFileName)
Definition: cmdLineParser.inl:191
std::string GetFileExtension(const std::string &fileName)
Definition: cmdLineParser.inl:167
std::vector< std::string > ReadWords(const std::string &fileName)
Definition: cmdLineParser.inl:199