hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::drce::ResourceUsageSerializator Class Reference

#include <DRCEResourceUsage.hpp>

Inheritance diagram for HCE::drce::ResourceUsageSerializator:
Collaboration diagram for HCE::drce::ResourceUsageSerializator:

Public Member Functions

 ResourceUsageSerializator (ResourceUsage &resourceUsage_)
 ResourceUsageSerializator (ResourceUsage &resourceUsage_, const std::string &json)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
void clear (void)
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
void setIsError (bool isError_)
bool isError (void) const
void resetError (void)

Additional Inherited Members

- Public Types inherited from HCE::IJsonSerializable
enum  { NO_ERROR = 0 }
- Protected Member Functions inherited from HCE::IJsonSerializable
template<class T = unsigned long long>
convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue)
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 75 of file DRCEResourceUsage.hpp.

Constructor & Destructor Documentation

HCE::drce::ResourceUsageSerializator::ResourceUsageSerializator ( ResourceUsage resourceUsage_)
explicit

Definition at line 172 of file DRCEResourceUsage.cpp.

HCE::drce::ResourceUsageSerializator::ResourceUsageSerializator ( ResourceUsage resourceUsage_,
const std::string &  json 
)

Definition at line 177 of file DRCEResourceUsage.cpp.

Here is the call graph for this function:

Member Function Documentation

void HCE::drce::ResourceUsageSerializator::clear ( void  )

Definition at line 279 of file DRCEResourceUsage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::drce::ResourceUsageSerializator::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 184 of file DRCEResourceUsage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::drce::ResourceUsageSerializator::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 222 of file DRCEResourceUsage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: