|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Abstract interface for container operations. More...
#include <container_integration.h>


Public Member Functions | |
| virtual | ~container_interface ()=default |
| virtual std::vector< uint8_t > | serialize (const std::any &data) const =0 |
| Serialize data to bytes. | |
| virtual std::any | deserialize (const std::vector< uint8_t > &bytes) const =0 |
| Deserialize bytes to data. | |
| virtual std::string | type_name () const =0 |
| Get container type name. | |
| virtual bool | is_valid () const =0 |
| Check if container is valid. | |
Abstract interface for container operations.
This interface allows network_system to work with any container implementation for message serialization.
Definition at line 43 of file container_integration.h.
|
virtualdefault |
|
pure virtual |
Deserialize bytes to data.
| bytes | The bytes to deserialize |
Implemented in kcenon::network::integration::basic_container.
|
pure virtual |
Check if container is valid.
Implemented in kcenon::network::integration::basic_container.
|
pure virtual |
Serialize data to bytes.
| data | The data to serialize |
Implemented in kcenon::network::integration::basic_container.
|
pure virtual |
Get container type name.
Implemented in kcenon::network::integration::basic_container.