|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "CoralBase/Blob.h"
16 std::ostringstream
os;
17 attr.toOutputStream(
os);
18 const std::string native=
os.str();
19 const bool stringPayload=(native.find(
" (string) ") != std::string::npos);
20 const bool blobPayload=(native.find(
" (blob) ") != std::string::npos);
22 const std::string
regex=R
"delim( \(.*\))delim";
24 const std::string
sep(
" : ");
25 const auto separatorPosition = deleted.find(
sep);
26 const std::string payloadOnly=deleted.substr(separatorPosition+3);
31 std::string
result(payloadOnly);
42 const unsigned int nelement=atrlist.size();
44 for (
unsigned int i(0);
i!=nelement;++
i){
std::string base64Encode(const coral::Blob &blob)
std::string deleteRegex(const std::string &original, const std::string ®ex)
Delete characters of a matching regex from the input string.
std::string sanitiseJsonString(const std::string &dataString)
Sanitise json string, escaping raw carriage returns.
std::string jsonAttributeList(const coral::AttributeList &atrlist)
Produce a representation of a coral::AttributeList as a json string.
std::string jsonAttribute(const coral::Attribute &attr)
Produce a representation of a coral::Attribute as a json string.
std::string quote(const std::string &sentence)
Enclose a string in ".