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