|
hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
|
#include <HandlerProperties.hpp>


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) |
| Dictionary & | operator= (const Dictionary &rhs) |
| Dictionary & | operator= (Dictionary &&rhs) |
| Dictionary & | operator+= (const Dictionary &rhs) |
| Dictionary & | operator/= (size_t count) |
| const Items & | getItems (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> | |
| T | 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 |
Definition at line 28 of file HandlerProperties.hpp.
Definition at line 31 of file HandlerProperties.hpp.
| HCE::handlers::HandlerProperties::HandlerProperties | ( | void | ) |
Definition at line 19 of file HandlerProperties.cpp.
|
inline |
Definition at line 40 of file HandlerProperties.hpp.
| _Property HCE::handlers::HandlerProperties::get | ( | const std::string & | name, |
| _Property | defaultValue = _Property() |
||
| ) |
| bool HCE::handlers::HandlerProperties::load | ( | const std::string & | fileName | ) |
Definition at line 124 of file HandlerProperties.cpp.


| bool HCE::handlers::HandlerProperties::save | ( | const std::string & | fileName | ) |
|
virtual |
Implements HCE::IJsonSerializable.
Definition at line 24 of file HandlerProperties.cpp.

| void HCE::handlers::HandlerProperties::set | ( | const std::string & | name, |
| _Property | value | ||
| ) |
|
virtual |
Implements HCE::IJsonSerializable.
Definition at line 57 of file HandlerProperties.cpp.


|
friend |
Definition at line 176 of file HandlerProperties.cpp.
|
friend |
Definition at line 165 of file HandlerProperties.cpp.