Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "CondCore/CondDB/interface/Serialization.h"
//
#include <sstream>
#include "boost/version.hpp"

std::string cond::StreamerInfo::techVersion() { return BOOST_LIB_VERSION; }

std::string cond::StreamerInfo::jsonString() {
  std::stringstream ss;
  ss << " {" << std::endl;
  ss << "\"" << CMSSW_VERSION_LABEL << "\": \"" << currentCMSSWVersion() << "\"," << std::endl;
  ss << "\"" << ARCH_LABEL << "\": \"" << currentArchitecture() << "\"," << std::endl;
  ss << "\"" << TECH_LABEL << "\": \"" << TECHNOLOGY << "\"," << std::endl;
  ss << "\"" << TECH_VERSION_LABEL << "\": \"" << techVersion() << "\"" << std::endl;
  ss << " }" << std::endl;
  return ss.str();
}