Back to index

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

#include <configcore.h>

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

List of all members.

Public Member Functions

 ConfGrp (const std::string &section)
 ConfGrp (const std::string &section, const std::string &id)
 ConfGrp (const std::string &section, const std::string &id, const std::list< Option > &options)
void AddOption (const Option &opt)
std::list< OptionFindOption (const std::string &attr) const
std::list< std::string > FindOptionValue (const std::string &attr) const
const std::string & GetSection () const
const std::string & GetID () const
const std::list< Option > & GetOptions () const

Private Attributes

std::string section
std::string id
std::list< Optionoptions

Detailed Description

Definition at line 54 of file configcore.h.


Constructor & Destructor Documentation

ARex::ConfGrp::ConfGrp ( const std::string &  section)

Definition at line 55 of file configcore.cpp.

: section(s) {}
ARex::ConfGrp::ConfGrp ( const std::string &  section,
const std::string &  id 
)

Definition at line 57 of file configcore.cpp.

                                     : section(s), id (i) {}
ARex::ConfGrp::ConfGrp ( const std::string &  section,
const std::string &  id,
const std::list< Option > &  options 
)

Definition at line 60 of file configcore.cpp.

                                           : section(s), id (i),
                                               options(o) {}

Member Function Documentation

void ARex::ConfGrp::AddOption ( const Option opt)

Definition at line 64 of file configcore.cpp.

                                         {
       options.push_back(opt);
}

Here is the caller graph for this function:

std::list< Option > ARex::ConfGrp::FindOption ( const std::string &  attr) const

Definition at line 68 of file configcore.cpp.

                                                               {
       std::list<Option> opts;
       for (std::list<Option>::const_iterator it = options.begin();
            it != options.end(); it++)
              if (it->GetAttr() == attr)
                     opts.push_back(*it);
       return opts;
}
std::list< std::string > ARex::ConfGrp::FindOptionValue ( const std::string &  attr) const

Definition at line 77 of file configcore.cpp.

                                                                       {
       std::list<std::string> opts;
       for (std::list<Option>::const_iterator it = options.begin();
            it != options.end(); it++)
              if (it->GetAttr() == attr)
                     opts.push_back(it->GetValue());
       return opts;
}
const std::string & ARex::ConfGrp::GetID ( ) const

Definition at line 90 of file configcore.cpp.

                                      {
       return id;
}
const std::list< Option > & ARex::ConfGrp::GetOptions ( ) const

Definition at line 94 of file configcore.cpp.

                                                 {
       return options;
}
const std::string & ARex::ConfGrp::GetSection ( ) const

Definition at line 86 of file configcore.cpp.

                                           {
       return section;
}

Member Data Documentation

std::string ARex::ConfGrp::id [private]

Definition at line 68 of file configcore.h.

std::list<Option> ARex::ConfGrp::options [private]

Definition at line 69 of file configcore.h.

std::string ARex::ConfGrp::section [private]

Definition at line 67 of file configcore.h.


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