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

#include <HandlerProperties.hpp>

Inheritance diagram for HCE::handlers::HandlerProperties:
Collaboration diagram for HCE::handlers::HandlerProperties:

Public Types

enum  ErrorCodes { NO_ERROR = 0, ERROR_SERIALIZE = 1, ERROR_UNSERIALIZE = 2, ERROR_LOAD_JSON_FILE = 3 }
- Public Types inherited from HCE::handlers::Dictionary< std::string, Poco::Dynamic::Var >
typedef std::map< std::string,
Poco::Dynamic::Var > 
Items
typedef Items::iterator Iterator
typedef Items::const_iterator ConstIterator
- Public Types inherited from HCE::IJsonSerializable
enum  { NO_ERROR = 0 }

Public Member Functions

 HandlerProperties (void)
 ~HandlerProperties (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
bool load (const std::string &fileName)
bool save (const std::string &fileName)
template<typename _Property >
void set (const std::string &name, _Property value)
template<typename _Property >
_Property get (const std::string &name, _Property defaultValue=_Property())
- Public Member Functions inherited from HCE::handlers::Dictionary< std::string, Poco::Dynamic::Var >
 Dictionary (void)
 Dictionary (const Dictionary &rhs)
 Dictionary (Dictionary &&rhs)
virtual ~Dictionary (void)
Dictionaryoperator= (const Dictionary &rhs)
Dictionaryoperator= (Dictionary &&rhs)
Dictionaryoperator+= (const Dictionary &rhs)
Dictionaryoperator/= (size_t count)
const ItemsgetItems (void) const
size_t getItemsCount (void) const
bool isExist (const std::stringkey) const
const Poco::Dynamic::Var & getItem (const std::string &key) const
Poco::Dynamic::Var getItem (const std::string &key)
void setItem (const std::string &key, const Poco::Dynamic::Var &value)
void setItem (const std::string &key, Poco::Dynamic::Var &&value)
void clear (void)
_Other cast (void) const
_Other cast (_Arg arg) const
void copy (_Other &other) const
Iterator begin (void) noexcept
ConstIterator begin (void) const noexcept
Iterator end (void) noexcept
ConstIterator end (void) const noexcept
- 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)

Friends

std::istream & operator>> (std::istream &is, HandlerProperties &handlerProperties)
std::ostream & operator<< (std::ostream &os, const HandlerProperties &handlerProperties)

Additional Inherited Members

- 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::handlers::Dictionary< std::string, Poco::Dynamic::Var >
Items items
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 28 of file HandlerProperties.hpp.

Member Enumeration Documentation

Enumerator:
NO_ERROR 
ERROR_SERIALIZE 
ERROR_UNSERIALIZE 
ERROR_LOAD_JSON_FILE 

Definition at line 31 of file HandlerProperties.hpp.

Constructor & Destructor Documentation

HCE::handlers::HandlerProperties::HandlerProperties ( void  )

Definition at line 19 of file HandlerProperties.cpp.

HCE::handlers::HandlerProperties::~HandlerProperties ( void  )
inline

Definition at line 40 of file HandlerProperties.hpp.

Member Function Documentation

template<typename _Property >
_Property HCE::handlers::HandlerProperties::get ( const std::string &  name,
_Property  defaultValue = _Property() 
)

Definition at line 63 of file HandlerProperties.hpp.

Here is the call graph for this function:

bool HCE::handlers::HandlerProperties::load ( const std::string &  fileName)

Definition at line 124 of file HandlerProperties.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::handlers::HandlerProperties::save ( const std::string &  fileName)

Definition at line 157 of file HandlerProperties.cpp.

Here is the caller graph for this function:

bool HCE::handlers::HandlerProperties::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 24 of file HandlerProperties.cpp.

Here is the call graph for this function:

template<typename _Property >
void HCE::handlers::HandlerProperties::set ( const std::string &  name,
_Property  value 
)

Definition at line 58 of file HandlerProperties.hpp.

Here is the call graph for this function:

bool HCE::handlers::HandlerProperties::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 57 of file HandlerProperties.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const HandlerProperties handlerProperties 
)
friend

Definition at line 176 of file HandlerProperties.cpp.

std::istream& operator>> ( std::istream &  is,
HandlerProperties handlerProperties 
)
friend

Definition at line 165 of file HandlerProperties.cpp.


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