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

#include <Progress.h>

Inheritance diagram for pool::Progress:
Collaboration diagram for pool::Progress:

Public Member Functions

 Progress ()
 Constructors. More...
 
virtual ~Progress ()
 
bool evalArgs (std::vector< std::string > &argv)
 Apply the criteria in the QualList to the argv[]. More...
 
void print (const std::string &action, int percentage)
 
virtual void init ()
 init More...
 
bool hasQual (const std::string &arg) const
 Check if argument was found in the argv[]. More...
 
bool getOpt (const std::string &opt, std::string &optval) const
 check if option was present and return its (first) value in optval(!) More...
 
bool getOpt (const std::string &opt, int &optval) const
 check if option was present and return its (first) numerical value in optval (!) More...
 
bool getOpts (const std::string &opt, std::vector< std::string > &optvalvec) const
 check if option was present and return its values in optvalvec(!) More...
 
virtual bool evalArgsPass2 (std::vector< std::string > &, pool::Args2Container &)
 Second pass options processing. More...
 
bool valid () const
 Returns true if evalArgs has been called with no errors. More...
 
std::string name () const
 identifier More...
 
ArgQualgetArgQual (const std::string &a)
 
QualListgetArgQuals ()
 
std::vector< std::string > & allowedTypes ()
 Hack to bring in allowed types of Collections. More...
 
unsigned int nArgs (std::string)
 Number of arguments for a given qualifer, e.g. nArgs("-src") More...
 
void setArgQuals (QualList &quals)
 set the QualList More...
 
void ignoreMissingArgs (bool ignore)
 set flag to suppress error messages about missing arguments e.g. when -xmlInput is present More...
 

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

Protected Attributes

bool m_argsfine
 
bool m_ignoreMissingArgs
 
std::vector< std::string > m_argv
 

Private Member Functions

void initTypes ()
 Fill the vector m_allowedTypes. More...
 

Private Attributes

bool m_valid
 
bool m_stdout
 
std::string m_outFName
 
std::ofstream m_file
 
QualList m_quals
 
std::string m_id
 
std::vector< std::string > m_allowedTypes
 

Detailed Description

Definition at line 28 of file Progress.h.

Constructor & Destructor Documentation

◆ Progress()

pool::Progress::Progress ( )

Constructors.

◆ ~Progress()

virtual pool::Progress::~Progress ( )
inlinevirtual

Definition at line 40 of file Progress.h.

Member Function Documentation

◆ allowedTypes()

std::vector<std::string>& pool::CmdLineArgs2::allowedTypes ( )
inlineinherited

Hack to bring in allowed types of Collections.

Definition at line 113 of file CmdLineArgs2.h.

◆ evalArgs()

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

Apply the criteria in the QualList to the argv[].

Reimplemented from pool::CmdLineArgs2.

◆ evalArgsPass2()

virtual bool pool::CmdLineArgs2::evalArgsPass2 ( std::vector< std::string > &  ,
pool::Args2Container  
)
inlinevirtualinherited

Second pass options processing.

Reimplemented in pool::QueryInfo.

Definition at line 100 of file CmdLineArgs2.h.

◆ getArgQual()

ArgQual& pool::CmdLineArgs2::getArgQual ( const std::string &  a)
inlineinherited

Definition at line 109 of file CmdLineArgs2.h.

◆ getArgQuals()

QualList& pool::CmdLineArgs2::getArgQuals ( )
inlineinherited

Definition at line 110 of file CmdLineArgs2.h.

◆ getOpt() [1/2]

bool pool::CmdLineArgs2::getOpt ( const std::string &  opt,
int &  optval 
) const
inherited

check if option was present and return its (first) numerical value in optval (!)

◆ getOpt() [2/2]

bool pool::CmdLineArgs2::getOpt ( const std::string &  opt,
std::string &  optval 
) const
inherited

check if option was present and return its (first) value in optval(!)

◆ getOpts()

bool pool::CmdLineArgs2::getOpts ( const std::string &  opt,
std::vector< std::string > &  optvalvec 
) const
inherited

check if option was present and return its values in optvalvec(!)

◆ hasQual()

bool pool::CmdLineArgs2::hasQual ( const std::string &  arg) const
inherited

Check if argument was found in the argv[].

◆ ignoreMissingArgs()

void pool::CmdLineArgs2::ignoreMissingArgs ( bool  ignore)
inlineinherited

set flag to suppress error messages about missing arguments e.g. when -xmlInput is present

Definition at line 122 of file CmdLineArgs2.h.

◆ init()

void pool::CmdLineArgs2::init ( )
inlinevirtualinherited

init

Definition at line 141 of file CmdLineArgs2.h.

◆ initTypes()

void pool::CmdLineArgs2::initTypes ( )
privateinherited

Fill the vector m_allowedTypes.

◆ name()

std::string pool::CmdLineArgs2::name ( ) const
inlineinherited

identifier

Definition at line 106 of file CmdLineArgs2.h.

◆ nArgs()

unsigned int pool::CmdLineArgs2::nArgs ( std::string  )
inherited

Number of arguments for a given qualifer, e.g. nArgs("-src")

◆ print()

void pool::Progress::print ( const std::string &  action,
int  percentage 
)

◆ setArgQuals()

void pool::CmdLineArgs2::setArgQuals ( QualList quals)
inlineinherited

set the QualList

Definition at line 119 of file CmdLineArgs2.h.

◆ valid()

bool pool::CmdLineArgs2::valid ( ) const
inlineinherited

Returns true if evalArgs has been called with no errors.

Definition at line 103 of file CmdLineArgs2.h.

104 :
105 

Member Data Documentation

◆ elements

T std::map< K, T >::elements
inherited

STL member.

◆ keys

K std::map< K, T >::keys
inherited

STL member.

◆ m_allowedTypes

std::vector<std::string> pool::CmdLineArgs2::m_allowedTypes
privateinherited

Definition at line 137 of file CmdLineArgs2.h.

◆ m_argsfine

bool pool::CmdLineArgs2::m_argsfine
protectedinherited

Definition at line 126 of file CmdLineArgs2.h.

◆ m_argv

std::vector<std::string> pool::CmdLineArgs2::m_argv
protectedinherited

Definition at line 128 of file CmdLineArgs2.h.

◆ m_file

std::ofstream pool::Progress::m_file
private

Definition at line 52 of file Progress.h.

◆ m_id

std::string pool::CmdLineArgs2::m_id
privateinherited

Definition at line 136 of file CmdLineArgs2.h.

◆ m_ignoreMissingArgs

bool pool::CmdLineArgs2::m_ignoreMissingArgs
protectedinherited

Definition at line 127 of file CmdLineArgs2.h.

◆ m_outFName

std::string pool::Progress::m_outFName
private

Definition at line 51 of file Progress.h.

◆ m_quals

QualList pool::CmdLineArgs2::m_quals
privateinherited

Definition at line 135 of file CmdLineArgs2.h.

◆ m_stdout

bool pool::Progress::m_stdout
private

Definition at line 50 of file Progress.h.

◆ m_valid

bool pool::Progress::m_valid
private

Definition at line 49 of file Progress.h.


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