Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:00:27

0001 /*
0002  * JsonSerializable.h
0003  *
0004  *  Created on: Aug 2, 2012
0005  *      Author: aspataru
0006  */
0007 
0008 #ifndef JSONSERIALIZABLE_H_
0009 #define JSONSERIALIZABLE_H_
0010 
0011 #include "json.h"
0012 
0013 namespace jsoncollector {
0014   class JsonSerializable {
0015   public:
0016     virtual ~JsonSerializable(){};
0017     virtual void serialize(Json::Value& root) const = 0;
0018     virtual void deserialize(Json::Value& root) = 0;
0019   };
0020 }  // namespace jsoncollector
0021 
0022 #endif /* JSONSERIALIZABLE_H_ */