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
JsonDatasetSerializer.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_JSON_DATASET_SERIALIZER_H__
18
#define __BUSBOY_JSON_DATASET_SERIALIZER_H__
19
20
#include <string>
21
22
#include "
dataset/dataset_api.h
"
23
#include "
serialize/serialize_api.h
"
24
25
namespace
BUSBOY {
26
27
class
JsonDatasetSerializerImpl;
28
29
class
JsonDatasetSerializer
:
public
DatasetSerializer
{
30
31
public
:
32
33
JsonDatasetSerializer
();
34
35
~JsonDatasetSerializer
();
36
37
std::string
serializeDataset
(
const
Dataset
& dataset)
const
;
38
39
Dataset
*
deserializeDataset
(
const
std::string& data)
const
;
40
41
std::string
serializeDataFile
(
const
DataFile
& file)
const
;
42
43
DataFile
*
deserializeDataFile
(
const
std::string& data)
const
;
44
45
std::string
serializeDataKey
(
const
DataKey
& key)
const
;
46
47
DataKey
deserializeDataKey
(
const
std::string& data)
const
;
48
49
std::string
getContentType
()
const
;
50
51
private
:
52
53
JsonDatasetSerializerImpl
* m_impl;
54
55
// prevent calling these
56
JsonDatasetSerializer
(
const
JsonDatasetSerializer
& serializer);
57
JsonDatasetSerializer
& operator=(
const
JsonDatasetSerializer
& serializer);
58
59
60
};
61
62
}
63
#endif
64
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.