14 std::string sParam =
"";
15 std::string sMessage =
"";
19 std::istringstream iss(
buffer[
i]);
21 bool chkParam =
false;
22 bool chkMessage =
false;
24 if (
s.find(
"{{")!=std::string::npos) {
25 sParam +=
s.substr(2,
s.length());
28 else if (
s.find(
"},")!=std::string::npos) {
29 sParam +=
s.substr(0,
s.length()-2);
32 else if (
s.find(
"}}")!=std::string::npos) {
33 sParam +=
s.substr(0,
s.length()-2);
37 else if (
s.find(
"{")!=std::string::npos &&
s.find(
"}")!=std::string::npos) {
38 sParam +=
s.substr(1,
s.length()-1);
40 else if (
s.find(
"{")!=std::string::npos) {
41 sParam +=
s.substr(1,
s.length());
44 else if (
s.find(
"}")!=std::string::npos) {
45 sParam +=
s.substr(0,
s.length()-1);
49 else if (chkParam==
true) {
52 else if (chkMessage==
true) {
59 throw std::runtime_error (
"PixelConfigCondAlg::getParameterString() Input variable " +
varName +
" was not found. " );
62 std::vector<std::string> vParam;
66 if (
pos==std::string::npos) {
67 vParam.push_back(sParam.substr(
offset,
pos));
74 std::vector<std::string> vvParam;
75 for (
const auto & param : vParam) {
76 if (param.find(
"\"")!=std::string::npos) {
77 if (vParam.size()==1) {
78 vvParam.push_back(param.substr(1,param.length()-3));
80 vvParam.push_back(param.substr(1,param.length()-2));
83 vvParam.push_back(param);