ATLAS Offline Software
CrestApiExt.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2019-2024 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 
15 #include <CrestApi/CrestApi.h>
16 #include <boost/parameter/name.hpp>
17 #include <boost/parameter/preprocessor.hpp>
18 
19 
20 BOOST_PARAMETER_NAME(page)
21 BOOST_PARAMETER_NAME(size)
22 BOOST_PARAMETER_NAME(tagname)
23 BOOST_PARAMETER_NAME(sort)
24 BOOST_PARAMETER_NAME(dateformat)
25 BOOST_PARAMETER_NAME(name)
26 
27 namespace Crest {
28  class CrestClientExt: public CrestClient {
29  public:
30  CrestClientExt(const std::string& _host, const std::string& _port, bool _check_version = s_CREST_CLIENT_CHECK) : CrestClient(_host, _port, _check_version) {}
31  CrestClientExt(const std::string& url, bool check_version = s_CREST_CLIENT_CHECK) : CrestClient(url, check_version) {}
32 
33 // ~CrestClientExt();
34 
53  listGlobalTagsParams,
54  tag,
55  (required
56  )
57  (optional
58  (name, (std::string), "")
59  (size, (int), 1000)
60  (page, (int), 0)
61  (sort, (std::string), "name:ASC")
62  )
63  ) {
64  return listGlobalTags(name, size, page, sort);
65  }
66 
85  (TagSetDto),
86  listTagsParams,
87  tag,
88  (required
89  )
90  (optional
91  (name, (std::string), "")
92  (size, (int), 1000)
93  (page, (int), 0)
94  (sort, (std::string), "name:ASC")
95  )
96  ) {
97  return listTags(name, size, page, sort);
98  }
99 
100  }; // CrestClientExt (end)
101 
102 } // namespace Crest
Crest::CrestClientExt::CrestClientExt
CrestClientExt(const std::string &_host, const std::string &_port, bool _check_version=s_CREST_CLIENT_CHECK)
Definition: CrestApiExt.h:30
Crest::CrestClient::listTags
TagSetDto listTags(const std::string &name, int size, int page, const std::string &sort) override
This method returns the tag list as TagSetDto from the CREST server.
Definition: CrestApi.cxx:409
TagSetDto
Definition: CrestModel.h:126
GlobalTagSetDto
Definition: CrestModel.h:81
Crest
Definition: CrestApi.h:30
physics_parameters.url
string url
Definition: physics_parameters.py:27
Crest::CrestClientExt::BOOST_PARAMETER_MEMBER_FUNCTION
BOOST_PARAMETER_MEMBER_FUNCTION((GlobalTagSetDto), listGlobalTagsParams, tag,(required)(optional(name,(std::string), "")(size,(int), 1000)(page,(int), 0)(sort,(std::string), "name:ASC")))
This method returns the global tag list.
Definition: CrestApiExt.h:51
CrestApi.h
Header file for CREST C++ Client Library.
Crest::CrestClientExt::CrestClientExt
CrestClientExt(const std::string &url, bool check_version=s_CREST_CLIENT_CHECK)
Definition: CrestApiExt.h:31
Crest::CrestClient::s_CREST_CLIENT_CHECK
static const bool s_CREST_CLIENT_CHECK
Definition: CrestApi.h:164
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
Crest::CrestClientExt
Definition: CrestApiExt.h:28
perfmonmt-printer.required
required
Definition: perfmonmt-printer.py:184
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MyPlots.page
page
Definition: MyPlots.py:234
Crest::CrestClient::listGlobalTags
GlobalTagSetDto listGlobalTags(const std::string &name, int size, int page, const std::string &sort) override
This method finds the global tags on the CREST server.
Definition: CrestApi.cxx:319
Crest::CrestClientExt::BOOST_PARAMETER_MEMBER_FUNCTION
BOOST_PARAMETER_MEMBER_FUNCTION((TagSetDto), listTagsParams, tag,(required)(optional(name,(std::string), "")(size,(int), 1000)(page,(int), 0)(sort,(std::string), "name:ASC")))
This method returns the tag list.
Definition: CrestApiExt.h:84
Crest::CrestClient
Definition: CrestApi.h:33
tagname
Definition: tagname.h:29
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24