HCE project C++ developers source code library
1.1.1
HCE project developer library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
DRCEDefaultJSON.hpp
Go to the documentation of this file.
1
14
#ifndef DRCE_DEFAULT_JSON_HPP
15
#define DRCE_DEFAULT_JSON_HPP
16
17
#include <iostream>
18
19
namespace
HCE
20
{
21
namespace
drce
22
{
23
class
DRCEResultData;
24
//-----------------------------------------------------------------------------
25
class
DRCEDefaultJSON
26
{
27
public
:
28
explicit
DRCEDefaultJSON
(
unsigned
int
dataItemsCount=0,
unsigned
int
filesCount=0);
29
~DRCEDefaultJSON
() {}
30
31
bool
makeJSON
(
unsigned
int
dataItemsCount=0,
unsigned
int
filesCount=0);
32
33
const
std::string&
getJSON
(
void
)
const
{
return
json;}
34
const
std::string&
getErrorMsg
(
void
)
const
{
return
errorMsg;}
35
unsigned
int
getErrorCode
(
void
)
const
{
return
errorCode;}
36
bool
isError
(
void
)
const
{
return
_isError;}
37
private
:
38
bool
fillResultData(
DRCEResultData
& resultData,
unsigned
int
dataItemsCount,
unsigned
int
filesCount);
39
private
:
40
std::string json;
41
std::string errorMsg;
42
unsigned
int
errorCode;
43
bool
_isError;
44
45
friend
std::ostream&
operator<<
(std::ostream& os,
const
DRCEDefaultJSON
& defaultJson);
46
};
47
//-----------------------------------------------------------------------------
48
//-----------------------------------------------------------------------------
49
}
// end namespace drce
50
}
// end namespace HCE
51
52
53
#endif // DRCE_DEFAULT_JSON_HPP
sources
DRCE
src
DRCEDefaultJSON.hpp
Generated on Mon Jan 13 2014 13:08:36 for HCE project C++ developers source code library by
1.8.1.2