#include <CoralCrestManager.h>
Definition at line 19 of file CoralCrestManager.h.
◆ CoralCrestManager()
CoralCrestManager::CoralCrestManager |
( |
const std::string & |
crest_path, |
|
|
const std::string & |
crestTag |
|
) |
| |
Definition at line 18 of file CoralCrestManager.cxx.
19 if(crest_path.length()==0)
22 m_crestCl = std::make_unique<Crest::CrestApi>(Crest::CrestApi(crest_path));
25 m_crestCl = std::make_unique<Crest::CrestApiFs>(Crest::CrestApiFs(
true,crest_path));
◆ getGlobalTagMap()
std::map< std::string, std::string > CoralCrestManager::getGlobalTagMap |
( |
const std::string & |
crest_path, |
|
|
const std::string & |
globaltag |
|
) |
| |
|
static |
Definition at line 29 of file CoralCrestManager.cxx.
30 Crest::CrestApiBase* crestCl=NULL;
32 crestCl =
new Crest::CrestApi(crest_path);
35 crestCl =
new Crest::CrestApiFs(
true,crest_path);
37 std::map<std::string, std::string> tagmap;
39 Crest::GlobalTagMapSetDto dto = crestCl->findGlobalTagMap(
globaltag,
"Trace");
40 for (
const auto &tagMapDto : dto.getResources()){
41 tagmap[tagMapDto.getLabel()]=tagMapDto.getTagName();
44 std::cerr<<__FILE__<<
":"<<__LINE__<<
": " <<
e.what() <<
" Cannot get a global tag map for " <<
globaltag << std::endl;
◆ m_crestCl
std::unique_ptr<Crest::CrestApiBase> CoralCrestManager::m_crestCl |
|
private |
◆ m_crestTag
const std::string CoralCrestManager::m_crestTag |
|
private |
◆ prefix1
const std::string CoralCrestManager::prefix1 {"http://"} |
|
inlinestatic |
◆ prefix2
const std::string CoralCrestManager::prefix2 {"https://"} |
|
inlinestatic |
The documentation for this class was generated from the following files: