Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

wali::util::ParseArgv Class Reference

Takes command line arguments and splits each one on a non escaped equal sign ('='). More...

List of all members.

Public Member Functions

 ParseArgv (int argc, char **argv)
virtual ~ParseArgv ()
virtual bool get (const std::string &key, std::string &value) const
virtual bool geti (const std::string &key, int &i) const
virtual bool exists (const std::string &key) const

Protected Types

typedef std::map< std::string,
std::string > 
pamap_t

Protected Member Functions

virtual void parse ()

Protected Attributes

int argc
char ** argv
pamap_t m

Detailed Description

Takes command line arguments and splits each one on a non escaped equal sign ('=').

ie. key=value Inserts the pair (key,val) into a map. If no equal sign is present inserts (key,"") into the map.


Member Typedef Documentation

typedef std::map< std::string, std::string > wali::util::ParseArgv::pamap_t [protected]

Constructor & Destructor Documentation

ParseArgv::ParseArgv ( int  argc,
char **  argv 
)

References parse().

ParseArgv::~ParseArgv (  )  [virtual]

Member Function Documentation

bool ParseArgv::get ( const std::string &  key,
std::string &  value 
) const [virtual]

References m.

bool ParseArgv::geti ( const std::string &  key,
int &  i 
) const [virtual]
bool ParseArgv::exists ( const std::string &  key  )  const [virtual]

References m.

void ParseArgv::parse (  )  [protected, virtual]

References argc, argv, m, and PINS.

Referenced by ParseArgv().


Member Data Documentation

int wali::util::ParseArgv::argc [protected]

Referenced by parse().

char** wali::util::ParseArgv::argv [protected]

Referenced by parse().

Referenced by exists(), get(), and parse().


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