CmdLine::OptionsSTRING Class Reference

#include <CmdLineParser.h>

Inheritance diagram for CmdLine::OptionsSTRING:

Inheritance graph
[legend]
Collaboration diagram for CmdLine::OptionsSTRING:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 OptionsSTRING (const Parser &parser)
Option< std::string > & Add (const std::string &, const std::string &="", std::string="", const char *first=0,...)
bool Match (int &, char **, int)

Private Attributes

std::map< std::string,
std::list< std::string > > 
m_ranges


Detailed Description

String options.

Constructor & Destructor Documentation

CmdLine::OptionsSTRING::OptionsSTRING ( const Parser parser  )  [inline]


Member Function Documentation

Option< std::string > & OptionsSTRING::Add ( const std::string &  name,
const std::string &  alias = "",
std::string  def = "",
const char *  first = 0,
  ... 
)

Attention:
Do not forget to end the sequence with NULL. For instance:
 String.Add( "-s", "--str", "name1", "name2", NULL );

References CmdLine::Parser::m_flags, CmdLine::OptionsType< std::string >::m_parser, and m_ranges.

bool OptionsSTRING::Match ( int &  i,
char **  argv,
int  argc 
)


Member Data Documentation

std::map<std::string, std::list<std::string> > CmdLine::OptionsSTRING::m_ranges [private]

Referenced by Add(), and Match().


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