ATLAS Offline Software
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
pool::Args2Container Class Reference

#include <Args2Container.h>

Inheritance diagram for pool::Args2Container:
Collaboration diagram for pool::Args2Container:

Public Types

enum  XMLVersion { V1 =0, V2, NUM_VERSIONS }
 
enum  XMLOption { FILEONLY =0, OVERRIDE, APPEND }
 

Public Member Functions

 Args2Container (const std::string &name="Args2Container", bool doxml=false, coral::MessageStream *log=0)
 
void init ()
 
void printHelp (bool verbose) const
 
bool checkValid () const
 
bool evalArgs (std::vector< std::string > &argv)
 
bool evalArgs (int argc, const char *argv[])
 
bool evalArgs (const std::string &cliarg, std::vector< std::string > &argv)
 
bool doXML () const
 
void setXMLOption (Args2Container::XMLOption a)
 

Public Attributes

std::stringstream desc
 
coral::MessageStream & m_log
 
elements
 STL member. More...
 

Private Member Functions

std::vector< std::string > fillCmdLineArgsFromXML (const std::string &file)
 
void writeXMLContent (std::vector< std::string > &argv)
 

Private Attributes

std::string m_name
 
bool m_xml
 
XMLOption m_xmlOpt
 
XMLVersion m_ver
 
CmdLineArgs2 m_a2c_cla2
 
std::string m_xFileName
 
std::vector< std::string > m_argv
 

Detailed Description

Definition at line 99 of file Args2Container.h.

Member Enumeration Documentation

◆ XMLOption

Enumerator
FILEONLY 
OVERRIDE 
APPEND 

Definition at line 142 of file Args2Container.h.

◆ XMLVersion

Enumerator
V1 
V2 
NUM_VERSIONS 

Definition at line 141 of file Args2Container.h.

Constructor & Destructor Documentation

◆ Args2Container()

pool::Args2Container::Args2Container ( const std::string &  name = "Args2Container",
bool  doxml = false,
coral::MessageStream *  log = 0 
)

Member Function Documentation

◆ checkValid()

bool pool::Args2Container::checkValid ( ) const

◆ doXML()

bool pool::Args2Container::doXML ( ) const
inline

Definition at line 160 of file Args2Container.h.

◆ evalArgs() [1/3]

bool pool::Args2Container::evalArgs ( const std::string &  cliarg,
std::vector< std::string > &  argv 
)

◆ evalArgs() [2/3]

bool pool::Args2Container::evalArgs ( int  argc,
const char *  argv[] 
)

◆ evalArgs() [3/3]

bool pool::Args2Container::evalArgs ( std::vector< std::string > &  argv)

◆ fillCmdLineArgsFromXML()

std::vector<std::string> pool::Args2Container::fillCmdLineArgsFromXML ( const std::string &  file)
private

◆ init()

void pool::Args2Container::init ( )

◆ printHelp()

void pool::Args2Container::printHelp ( bool  verbose) const

◆ setXMLOption()

void pool::Args2Container::setXMLOption ( Args2Container::XMLOption  a)
inline

Definition at line 161 of file Args2Container.h.

◆ writeXMLContent()

void pool::Args2Container::writeXMLContent ( std::vector< std::string > &  argv)
private

Member Data Documentation

◆ desc

std::stringstream pool::Args2Container::desc

Definition at line 166 of file Args2Container.h.

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_a2c_cla2

CmdLineArgs2 pool::Args2Container::m_a2c_cla2
private

Definition at line 182 of file Args2Container.h.

◆ m_argv

std::vector< std::string > pool::Args2Container::m_argv
private

Definition at line 186 of file Args2Container.h.

◆ m_log

coral::MessageStream& pool::Args2Container::m_log

Definition at line 168 of file Args2Container.h.

◆ m_name

std::string pool::Args2Container::m_name
private

Definition at line 178 of file Args2Container.h.

◆ m_ver

XMLVersion pool::Args2Container::m_ver
private

Definition at line 181 of file Args2Container.h.

◆ m_xFileName

std::string pool::Args2Container::m_xFileName
private

Definition at line 184 of file Args2Container.h.

◆ m_xml

bool pool::Args2Container::m_xml
private

Definition at line 179 of file Args2Container.h.

◆ m_xmlOpt

XMLOption pool::Args2Container::m_xmlOpt
private

Definition at line 180 of file Args2Container.h.


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