Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
ARex::Option Class Reference

#include <configcore.h>

Collaboration diagram for ARex::Option:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Option (const std::string &attr, const std::string &value)
 Option (const std::string &attr, const std::string &value, const std::map< std::string, std::string > &suboptions)
 ~Option ()
void AddSubOption (const std::string &attr, const std::string &value)
std::string FindSubOptionValue (const std::string &attr) const
const std::string & GetAttr () const
const std::string & GetValue () const
const std::map< std::string,
std::string > & 
GetSubOptions () const

Private Attributes

std::string attr
std::string value
std::map< std::string,
std::string > 
suboptions

Detailed Description

Definition at line 36 of file configcore.h.


Constructor & Destructor Documentation

ARex::Option::Option ( const std::string &  attr,
const std::string &  value 
)

Definition at line 22 of file configcore.cpp.

                                                     : attr(a),
                                                             value(v) {}
ARex::Option::Option ( const std::string &  attr,
const std::string &  value,
const std::map< std::string, std::string > &  suboptions 
)

Definition at line 25 of file configcore.cpp.

                                                      : attr(a),
                                                              value(v),
                                                              suboptions(s) {}

Definition at line 30 of file configcore.cpp.

{}

Member Function Documentation

void ARex::Option::AddSubOption ( const std::string &  attr,
const std::string &  value 
)

Definition at line 32 of file configcore.cpp.

std::string ARex::Option::FindSubOptionValue ( const std::string &  attr) const

Definition at line 36 of file configcore.cpp.

                                                                {
       std::map<std::string, std::string>::const_iterator
              i = suboptions.find(attr);
       return (i == suboptions.end() ? std::string() : i->second);
}
const std::string & ARex::Option::GetAttr ( ) const

Definition at line 42 of file configcore.cpp.

                                       {
       return attr;
}

Here is the caller graph for this function:

const std::map< std::string, std::string > & ARex::Option::GetSubOptions ( ) const

Definition at line 50 of file configcore.cpp.

                                                                {
       return suboptions;
}

Here is the caller graph for this function:

const std::string & ARex::Option::GetValue ( ) const

Definition at line 46 of file configcore.cpp.

                                        {
       return value;
}

Here is the caller graph for this function:


Member Data Documentation

std::string ARex::Option::attr [private]

Definition at line 48 of file configcore.h.

std::map<std::string, std::string> ARex::Option::suboptions [private]

Definition at line 50 of file configcore.h.

std::string ARex::Option::value [private]

Definition at line 49 of file configcore.h.


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