CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JsonPrinter.h
Go to the documentation of this file.
1 #ifndef CondCore_Utilities_JsonPrinter_h
2 #define CondCore_Utilities_JsonPrinter_h
3 
4 #include <string>
5 #include <tuple>
6 #include <vector>
7 
8 namespace cond {
9 
10  namespace utilities {
11 
12  class JsonPrinter {
13  public:
14  JsonPrinter();
15  JsonPrinter( const std::string& xName, const std::string& yName );
16 
17  virtual ~JsonPrinter(){}
18 
19  void append( const std::string& xValue, const std::string& yValue, const std::string& yError );
20  void append( const std::string& xValue, const std::string& yValue );
21 
23 
24  private:
27  std::vector<std::tuple<std::string,std::string,std::string> > m_values;
28  };
29  }
30 
31 }
32 
33 #endif
34 
void append(const std::string &xValue, const std::string &yValue, const std::string &yError)
Definition: JsonPrinter.cc:17
std::vector< std::tuple< std::string, std::string, std::string > > m_values
Definition: JsonPrinter.h:27