Skip to content
Snippets Groups Projects
Commit a7605c6e authored by Evgeny Alexandrov's avatar Evgeny Alexandrov Committed by Walter Lampl
Browse files

update crest payload format

update crest payload format
parent 08d0281a
No related branches found
No related tags found
No related merge requests found
......@@ -70,10 +70,7 @@ namespace IOVDbNamespace{
std::cout<<e.what()<<std::endl; //typically a parsing error
}
m_sharedSpec = parsePayloadSpec(specString);
const auto & payload=j["data"];//payload is an object in any case, of form {"0":["datastring"]}
//keep these lines for reference: iov handling is not yet implemented, but should be
//const auto & iovFromFile=j["iov"];//iov is a two-element array
//const std::pair<cool::ValidityKey, cool::ValidityKey> iov(iovFromFile[0], iovFromFile[1]);
const auto & payload=(j.contains("data")) ? j["data"] : j;
if(iov) {
m_basicFolder.setIov(*iov);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment