Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Protected Attributes | Private Attributes | Friends
Arc::IntOption Struct Reference
Inheritance diagram for Arc::IntOption:
Inheritance graph
Collaboration diagram for Arc::IntOption:
Collaboration graph

List of all members.

Public Member Functions

 IntOption (char shortOpt, std::string longOpt, std::string optDesc, std::string argDesc, int &value)
 ~IntOption ()
bool Set (const std::string &val)

Protected Attributes

char shortOpt
std::string longOpt
std::string optDesc
std::string argDesc

Private Attributes

int & value


class OptionParser

Detailed Description

Definition at line 87 of file OptionParser.cpp.

Constructor & Destructor Documentation

Arc::IntOption::IntOption ( char  shortOpt,
std::string  longOpt,
std::string  optDesc,
std::string  argDesc,
int &  value 
) [inline]

Definition at line 90 of file OptionParser.cpp.

Definition at line 95 of file OptionParser.cpp.


Member Function Documentation

bool Arc::IntOption::Set ( const std::string &  val) [inline, virtual]

Implements Arc::OptionBase.

Definition at line 101 of file OptionParser.cpp.

      bool ok = stringto(val, value);
      if (!ok)
        std::cout << IString("Cannot parse integer value '%s' for -%c",
                             val, shortOpt) << std::endl;
      return ok;

Here is the call graph for this function:

Friends And Related Function Documentation

friend class OptionParser [friend, inherited]

Definition at line 58 of file OptionParser.cpp.

Member Data Documentation

std::string Arc::OptionBase::argDesc [protected, inherited]

Definition at line 56 of file OptionParser.cpp.

std::string Arc::OptionBase::longOpt [protected, inherited]

Definition at line 54 of file OptionParser.cpp.

std::string Arc::OptionBase::optDesc [protected, inherited]

Definition at line 55 of file OptionParser.cpp.

char Arc::OptionBase::shortOpt [protected, inherited]

Definition at line 53 of file OptionParser.cpp.

int& Arc::IntOption::value [private]

Definition at line 111 of file OptionParser.cpp.

The documentation for this struct was generated from the following file: