|
lintel 0.2.0
|
#include <JsonSerializable.h>
Public Member Functions | |
| JsonSerializable ()=default | |
| virtual | ~JsonSerializable ()=default |
| virtual bool | deserialize (const rapidjson::Value &obj) |
| virtual void | serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const =0 |
| virtual std::string | serialize () const |
| virtual void | deserialize (const std::string &json) |
Class for serialization and deserialization of Json Types
|
default |
Default constructor
|
virtualdefault |
Virtual destructor
deserialization of given value in json
| obj | json value |
Reimplemented in lintel::GroupDto, lintel::GroupsDto, lintel::HistoryDto, lintel::MessageQueueDto, lintel::ProcessGroupDto, lintel::ProcessInfoDto, lintel::ProcessInfosDto, lintel::SharedMemoryRepositoryDto, lintel::SharedMemorySegmentDto, lintel::UserDto, lintel::UsersDto, lintel::UsersPageDto, lintel::UserGroupDto, lintel::UserLoginDto, lintel::UserNameDto, lintel::UserNamesDto, lintel::UserPasswordChangeDto, lintel::UserSessionDto, lintel::UserSessionsDto, lintel::UserTokenDto, lintel::SharedMemoryArrayRepository< DATA, DAO, MaxSize >, lintel::SharedMemoryVectorRepository< DATA, DAO >, lintel::SharedMemoryMapRepository< KEY, VALUE, KeyDao, ValueDao >, lintel::SharedMemoryMapRepository< shm::String, PropertyDataDto, shm::String, PropertyDataDao >, lintel::SharedMemoryObjectRepository< DATA, DAO >, lintel::PropertyDto, lintel::PropertyValueDto, and lintel::PropertyDataDao.
Deserializes the object from a JSON string.
| json | JSON string to deserialize |
Reimplemented in lintel::HistoryDtos, lintel::MessageQueueDtos, lintel::MessageQueuesPageDto, lintel::ProcessGroupsDto, lintel::SharedMemoryRepositoriesDto, lintel::SharedMemorySegmentsDto, and lintel::PropertiesDto.
|
inlinevirtual |
helper function to serialize json directly to string without the knowledge of rapidjson itself.
|
pure virtual |
serialization of object to json itself
| writer | for serialization of object |
Implemented in lintel::GroupDto, lintel::GroupsDto, lintel::HistoryDto, lintel::HistoryDtos, lintel::MessageQueueDto, lintel::MessageQueueDtos, lintel::MessageQueuesPageDto, lintel::ProcessGroupDto, lintel::ProcessGroupsDto, lintel::ProcessInfoDto, lintel::ProcessInfosDto, lintel::SharedMemoryRepositoriesDto, lintel::SharedMemoryRepositoryDto, lintel::SharedMemorySegmentDto, lintel::SharedMemorySegmentsDto, lintel::UserDto, lintel::UsersDto, lintel::UsersPageDto, lintel::UserGroupDto, lintel::UserLoginDto, lintel::UserNameDto, lintel::UserNamesDto, lintel::UserPasswordChangeDto, lintel::UserSessionDto, lintel::UserSessionsDto, lintel::UserTokenDto, lintel::SharedMemoryArrayRepository< DATA, DAO, MaxSize >, lintel::SharedMemoryVectorRepository< DATA, DAO >, lintel::SharedMemoryMapRepository< KEY, VALUE, KeyDao, ValueDao >, lintel::SharedMemoryMapRepository< shm::String, PropertyDataDto, shm::String, PropertyDataDao >, lintel::SharedMemoryObjectRepository< DATA, DAO >, lintel::PropertiesDto, lintel::PropertyDto, lintel::PropertyValueDto, and lintel::PropertyDataDao.