10 #include "CrestApi/CrestApi.h"
11 #include "CrestApi/CrestApiFs.h"
12 #include "CoralBase/AttributeList.h"
13 #include "CoralBase/Attribute.h"
14 #include "CoolKernel/StorageType.h"
15 #include "CoolKernel/RecordSpecification.h"
16 #include "CoolKernel/Record.h"
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));
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;