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
JsonAlgorithmSerializer.h
Go to the documentation of this file.
1
17
#ifndef __BUSBOY_JSON_ALGORITHM_SERIALIZER_H__
18
#define __BUSBOY_JSON_ALGORITHM_SERIALIZER_H__
19
20
#include <string>
21
22
#include "
algorithm/algorithm_api.h
"
23
#include "
serialize/serialize_api.h
"
24
25
namespace
BUSBOY {
26
27
class
JsonAlgorithmSerializerImpl;
28
29
class
JsonAlgorithmSerializer
:
public
AlgorithmSerializer
{
30
31
public
:
32
33
JsonAlgorithmSerializer
();
34
35
~JsonAlgorithmSerializer
();
36
37
std::string
serializeAlgorithm
(
const
Algorithm
& algo)
const
;
38
39
void
deserializeAlgorithm
(
const
std::string& json,
Algorithm
& algo)
const
;
40
41
std::string
getContentType
()
const
;
42
43
private
:
44
45
JsonAlgorithmSerializerImpl
* m_impl;
46
47
// prevent calling these
48
JsonAlgorithmSerializer
(
const
JsonAlgorithmSerializer
& serializer);
49
JsonAlgorithmSerializer
& operator=(
const
JsonAlgorithmSerializer
& serializer);
50
51
52
};
53
54
}
55
#endif
56
Tue Nov 11 2014 23:19:41
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.