Arguments Class Reference

#include <Arguments.h>

List of all members.

Public Member Functions

 Arguments (int argc=0, char **argv=NULL)
 ~Arguments ()
void SetApplicationFilename (const std::string &strApplicationFilename)
const std::stringGetApplicationFilename () const
const bool HasOption (const std::string &strOptionName) const
void SetOption (const std::string &strOptionName, const std::string &strOptionValue)
const std::string GetOption (const std::string &strOptionName) const
 Arguments (int argc=0, char **argv=NULL)
 ~Arguments ()
void SetApplicationFilename (const std::string &strApplicationFilename)
const std::stringGetApplicationFilename () const
const bool HasOption (const std::string &strOptionName) const
void SetOption (const std::string &strOptionName, const std::string &strOptionValue)
const std::string GetOption (const std::string &strOptionName) const

Private Attributes

std::string m_strApplicationFilename
std::map< std::string,
std::string
m_mapOptions

Friends

std::ostream & operator<< (std::ostream &os, const Arguments &argArguments)
std::ostream & operator<< (std::ostream &os, const Arguments &argArguments)


Detailed Description

Utility class for accessing command-line arguments, ignores everything apart from "-<optionname> <optionvalue>

Constructor & Destructor Documentation

Arguments::Arguments ( int  argc = 0,
char **  argv = NULL 
) [inline]

Constructs a new Arguments object argc argument from main argv arguments from main (console)

Arguments::~Arguments (  )  [inline]

Destroys the object

Arguments::Arguments ( int  argc = 0,
char **  argv = NULL 
) [inline]

Constructs a new Arguments object argc argument from main argv arguments from main (console)

Arguments::~Arguments (  )  [inline]

Destroys the object


Member Function Documentation

const std::string& Arguments::GetApplicationFilename (  )  const [inline]

Returns the application filename

Returns:
The application filename

const std::string& Arguments::GetApplicationFilename (  )  const [inline]

Returns the application filename

Returns:
The application filename

const std::string Arguments::GetOption ( const std::string strOptionName  )  const [inline]

Returns an option.

Parameters:
strOptionName Name of the option
Returns:
Option

const std::string Arguments::GetOption ( const std::string strOptionName  )  const [inline]

Returns an option.

Parameters:
strOptionName Name of the option
Returns:
Option

const bool Arguments::HasOption ( const std::string strOptionName  )  const [inline]

Determines if the given option exists strOptionName Option name

Returns:
true if there is a option, false otherwise

const bool Arguments::HasOption ( const std::string strOptionName  )  const [inline]

Determines if the given option exists strOptionName Option name

Returns:
true if there is a option, false otherwise

void Arguments::SetApplicationFilename ( const std::string strApplicationFilename  )  [inline]

Sets the application filename strApplicationFilename Filename

void Arguments::SetApplicationFilename ( const std::string strApplicationFilename  )  [inline]

Sets the application filename strApplicationFilename Filename

void Arguments::SetOption ( const std::string strOptionName,
const std::string strOptionValue 
) [inline]

Sets an option. strOptionName Option name strOptionValue Value of the option

void Arguments::SetOption ( const std::string strOptionName,
const std::string strOptionValue 
) [inline]

Sets an option. strOptionName Option name strOptionValue Value of the option


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Arguments argArguments 
) [friend]

std::ostream& operator<< ( std::ostream &  os,
const Arguments argArguments 
) [friend]


Member Data Documentation

Options map

Filename


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

Generated on Tue Jan 20 23:44:12 2009 for FlowVis by  doxygen 1.5.7.1