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

#include <QueryInfo.h>

Inheritance diagram for pool::QueryInfo:
Collaboration diagram for pool::QueryInfo:

Public Member Functions

 QueryInfo ()
 Constructors. More...
 
virtual ~QueryInfo ()
 
bool evalArgs (std::vector< std::string > &argv)
 Apply the criteria in the QualList to the argv[]. More...
 
bool evalArgsPass2 (std::vector< std::string > &argv, pool::Args2Container &container)
 Second pass options processing. More...
 
const std::string & query (size_t qn=0)
 return the query string.
More...
 
size_t nQuery () const
 
const std::vector< std::string > & queries () const
 
const std::string & queryOptions () const
 
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...
 
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

std::vector< std::string > m_queries
 
std::string m_queryOptions
 
QualList m_quals
 
std::string m_id
 
std::vector< std::string > m_allowedTypes
 

Detailed Description

Definition at line 30 of file QueryInfo.h.

Constructor & Destructor Documentation

◆ QueryInfo()

pool::QueryInfo::QueryInfo ( )

Constructors.

◆ ~QueryInfo()

virtual pool::QueryInfo::~QueryInfo ( )
inlinevirtual

Definition at line 44 of file QueryInfo.h.

44 :
45  std::vector<std::string> m_queries;

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::QueryInfo::evalArgs ( std::vector< std::string > &  argv)
virtual

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

Reimplemented from pool::CmdLineArgs2.

◆ evalArgsPass2()

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

Second pass options processing.

Reimplemented from pool::CmdLineArgs2.

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

◆ nQuery()

size_t pool::QueryInfo::nQuery ( ) const
inline

Definition at line 53 of file QueryInfo.h.

◆ queries()

const std::vector<std::string>& pool::QueryInfo::queries ( ) const
inline

Definition at line 54 of file QueryInfo.h.

◆ query()

const std::string& pool::QueryInfo::query ( size_t  qn = 0)

return the query string.

◆ queryOptions()

const std::string& pool::QueryInfo::queryOptions ( ) const
inline

Definition at line 56 of file QueryInfo.h.

◆ 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_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_queries

std::vector<std::string> pool::QueryInfo::m_queries
private

Definition at line 59 of file QueryInfo.h.

◆ m_queryOptions

std::string pool::QueryInfo::m_queryOptions
private

Definition at line 60 of file QueryInfo.h.


The documentation for this class was generated from the following file:
pool::QueryInfo::m_queries
std::vector< std::string > m_queries
Definition: QueryInfo.h:59