Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
EventFilter
Utilities
interface
JsonSerializable.h
Go to the documentation of this file.
1
/*
2
* JsonSerializable.h
3
*
4
* Created on: Aug 2, 2012
5
* Author: aspataru
6
*/
7
8
#ifndef JSONSERIALIZABLE_H_
9
#define JSONSERIALIZABLE_H_
10
11
#include "
json.h
"
12
13
namespace
jsoncollector {
14
class
JsonSerializable
{
15
public
:
16
virtual
~JsonSerializable
(){};
17
virtual
void
serialize
(
Json::Value
& root)
const
= 0;
18
virtual
void
deserialize
(
Json::Value
& root) = 0;
19
};
20
}
// namespace jsoncollector
21
22
#endif
/* JSONSERIALIZABLE_H_ */
jsoncollector::JsonSerializable
Definition:
JsonSerializable.h:14
jsoncollector::JsonSerializable::~JsonSerializable
virtual ~JsonSerializable()
Definition:
JsonSerializable.h:16
Json::Value
Represents a JSON value.
Definition:
value.h:99
jsoncollector::JsonSerializable::serialize
virtual void serialize(Json::Value &root) const =0
json.h
jsoncollector::JsonSerializable::deserialize
virtual void deserialize(Json::Value &root)=0
Generated for CMSSW Reference Manual by
1.8.5