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

#include <CatalogInfo.h>

Inheritance diagram for pool::CatalogInfo:
Collaboration diagram for pool::CatalogInfo:

Public Member Functions

 CatalogInfo ()
 Constructors. More...
 
virtual ~CatalogInfo ()
 
bool evalArgs (std::vector< std::string > &argv)
 Apply the criteria in the QualList to the argv[]. More...
 
std::string collCatalogN (unsigned int i)
 
std::string fileCatalogN (unsigned int i)
 
bool useCC ()
 
void setCatalogs ATLAS_NOT_THREAD_SAFE (pool::ICollectionService *)
 
void setFileCatalogs (pool::IFileCatalog *)
 
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...
 
const 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
 
std::vector< std::string > m_collCatalogReadVec
 
std::vector< std::string > m_fileCatalogReadVec
 
QualList m_quals
 
std::string m_id
 
std::vector< std::string > m_allowedTypes
 

Detailed Description

Definition at line 34 of file CatalogInfo.h.

Constructor & Destructor Documentation

◆ CatalogInfo()

pool::CatalogInfo::CatalogInfo ( )

Constructors.

◆ ~CatalogInfo()

virtual pool::CatalogInfo::~CatalogInfo ( )
inlinevirtual

Definition at line 41 of file CatalogInfo.h.

41 {return m_valid;}

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.

◆ ATLAS_NOT_THREAD_SAFE()

void setCatalogs pool::CatalogInfo::ATLAS_NOT_THREAD_SAFE ( pool::ICollectionService )

◆ collCatalogN()

std::string pool::CatalogInfo::collCatalogN ( unsigned int  i)

◆ evalArgs()

bool pool::CatalogInfo::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.

◆ fileCatalogN()

std::string pool::CatalogInfo::fileCatalogN ( unsigned int  i)

◆ 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()

const 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")

◆ setArgQuals()

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

set the QualList

Definition at line 119 of file CmdLineArgs2.h.

◆ setFileCatalogs()

void pool::CatalogInfo::setFileCatalogs ( pool::IFileCatalog )

◆ useCC()

bool pool::CatalogInfo::useCC ( )
inline

Definition at line 48 of file CatalogInfo.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_collCatalogReadVec

std::vector<std::string> pool::CatalogInfo::m_collCatalogReadVec
private

Definition at line 55 of file CatalogInfo.h.

◆ m_fileCatalogReadVec

std::vector<std::string> pool::CatalogInfo::m_fileCatalogReadVec
private

Definition at line 56 of file CatalogInfo.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_quals

QualList pool::CmdLineArgs2::m_quals
privateinherited

Definition at line 135 of file CmdLineArgs2.h.

◆ m_valid

bool pool::CatalogInfo::m_valid
private

Definition at line 54 of file CatalogInfo.h.


The documentation for this class was generated from the following file:
pool::CatalogInfo::m_valid
bool m_valid
Definition: CatalogInfo.h:54