ATLAS Offline Software
QueryInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef UTILITIES_COLLECTION_QUERYINFO
6 #define UTILITIES_COLLECTION_QUERYINFO
7 
10 
11 /**********************************************************
12 
13 QueryInfo is an concretization of a CmdLineArgs2
14  to contain query info.
15 
16 Qualifiers: -query, -queryopt
17 
18 **********************************************************/
19 
20 namespace pool
21 {
22 
23  class QueryInfo : public CmdLineArgs2
24  {
25  public:
26 
28  QueryInfo( );
29 
30  virtual ~QueryInfo() {}
31 
33  bool evalArgs(std::vector<std::string>& argv);
34 
35  bool evalArgsPass2(std::vector<std::string>& argv, pool::Args2Container& container);
36 
38  const std::string& query( size_t qn=0 );
39  size_t nQuery() const { return m_queries.size(); }
40  const std::vector<std::string>& queries() const { return m_queries; }
41 
42  const std::string& queryOptions() const { return m_queryOptions; }
43 
44  private:
45  std::vector<std::string> m_queries;
46  std::string m_queryOptions;
47  };
48 
49 
50 } // end pool namespace
51 
52 #endif // UTILITIES_COLLECTION_QUERYINFO
53 
pool::QueryInfo::query
const std::string & query(size_t qn=0)
return the query string.
ArgQual.h
pool::QueryInfo::queries
const std::vector< std::string > & queries() const
Definition: QueryInfo.h:54
pool
pool namespace
Definition: libname.h:15
pool::Args2Container
Definition: Args2Container.h:100
CmdLineArgs2.h
LArCellNtuple.argv
argv
Definition: LArCellNtuple.py:152
pool::QueryInfo::evalArgs
bool evalArgs(std::vector< std::string > &argv)
Apply the criteria in the QualList to the argv[].
pool::QueryInfo::m_queries
std::vector< std::string > m_queries
Definition: QueryInfo.h:59
pool::QueryInfo::nQuery
size_t nQuery() const
Definition: QueryInfo.h:53
pool::QueryInfo::QueryInfo
QueryInfo()
Constructors.
pool::QueryInfo::evalArgsPass2
bool evalArgsPass2(std::vector< std::string > &argv, pool::Args2Container &container)
Second pass options processing.
pool::QueryInfo::~QueryInfo
virtual ~QueryInfo()
Definition: QueryInfo.h:44
pool::QueryInfo::m_queryOptions
std::string m_queryOptions
Definition: QueryInfo.h:60
pool::QueryInfo::queryOptions
const std::string & queryOptions() const
Definition: QueryInfo.h:56