BusBoy
2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cpp
api
serialize
json
JsonCommonSerializer.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_JSON_COMMON_SERIALIZER_H__
18
#define __BUSBOY_JSON_COMMON_SERIALIZER_H__
19
20
#include <string>
21
#include <jansson.h>
22
23
#include "
dataset/dataset_api.h
"
24
25
namespace
BUSBOY {
26
27
class
JsonCommonSerializer
{
28
29
public
:
30
31
static
json_t*
keyDimensionToJson
(
const
DataKeyDimension
& dim);
32
33
static
DataKeyDimension
jsonToKeyDimension
(
const
json_t* jsonDim);
34
35
static
json_t*
keyElementToJson
(
const
DataKeyElement
& element);
36
37
static
DataKeyElement
jsonToKeyElement
(
const
json_t* jsonElement);
38
39
private
:
40
41
// prevent calling these
42
JsonCommonSerializer
();
43
JsonCommonSerializer
(
const
JsonCommonSerializer
& ser);
44
JsonCommonSerializer
& operator=(
const
JsonCommonSerializer
& ser);
45
46
47
};
48
49
}
50
#endif
51
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.