CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ObjectMerger.h
Go to the documentation of this file.
1 /*
2  * ObjectMerger.h
3  *
4  * Created on: Sep 24, 2012
5  * Author: aspataru
6  */
7 
8 #ifndef OBJECTMERGER_H_
9 #define OBJECTMERGER_H_
10 
11 #include <vector>
12 #include "DataPoint.h"
13 #include "DataPointDefinition.h"
14 
15 namespace jsoncollector {
16 class ObjectMerger {
17 
18 public:
24  static DataPoint* merge(const std::vector<DataPoint*>& objectsToMerge,
25  std::string& outcomeMessage, bool onlyHistos);
26 
30  static bool getDataPointDefinitionFor(std::string defFilePath,
32 
37  std::string defPath);
38 
39 private:
40  static std::string applyOperation(const std::vector<std::string>& dataVector,
41  std::string operationName);
42  static bool checkConsistency(const std::vector<DataPoint*>& objectsToMerge,
43  std::string& outcomeMessage);
44 
45 };
46 }
47 
48 #endif /* OBJECTMERGER_H_ */
int def(FILE *, FILE *, int)
static std::string applyOperation(const std::vector< std::string > &dataVector, std::string operationName)
static DataPoint * csvToJson(std::string &olCSV, DataPointDefinition *dpd, std::string defPath)
static bool checkConsistency(const std::vector< DataPoint * > &objectsToMerge, std::string &outcomeMessage)
static DataPoint * merge(const std::vector< DataPoint * > &objectsToMerge, std::string &outcomeMessage, bool onlyHistos)
Definition: ObjectMerger.cc:23
static bool getDataPointDefinitionFor(std::string defFilePath, DataPointDefinition &def)