lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::SharedMemorySegmentsDto Class Reference

#include <SharedMemorySegmentsDto.h>

Inheritance diagram for lintel::SharedMemorySegmentsDto:
lintel::JsonSerializable

Public Member Functions

 SharedMemorySegmentsDto (std::vector< SharedMemorySegmentDto > segments)
 
 SharedMemorySegmentsDto ()=default
 
const std::vector< SharedMemorySegmentDto > & getSegments () const
 
void serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
 
void deserialize (const std::string &json) override
 
- Public Member Functions inherited from lintel::JsonSerializable
 JsonSerializable ()=default
 
virtual ~JsonSerializable ()=default
 
virtual bool deserialize (const rapidjson::Value &obj)
 
virtual std::string serialize () const
 

Detailed Description

DTO representing a collection of shared memory segments

Constructor & Destructor Documentation

◆ SharedMemorySegmentsDto() [1/2]

lintel::SharedMemorySegmentsDto::SharedMemorySegmentsDto ( std::vector< SharedMemorySegmentDto >  segments)
explicit

Construct from existing SharedMemorySegmentDto objects

Parameters
segmentsThe segment DTOs

◆ SharedMemorySegmentsDto() [2/2]

lintel::SharedMemorySegmentsDto::SharedMemorySegmentsDto ( )
default

Default constructor

Member Function Documentation

◆ deserialize()

void lintel::SharedMemorySegmentsDto::deserialize ( const std::string &  json)
overridevirtual

Deserialize from JSON string

Parameters
jsonThe JSON string to parse

Reimplemented from lintel::JsonSerializable.

◆ getSegments()

const std::vector< SharedMemorySegmentDto > & lintel::SharedMemorySegmentsDto::getSegments ( ) const

Get the segment DTOs

Returns
Vector of segment DTOs

◆ serialize()

void lintel::SharedMemorySegmentsDto::serialize ( rapidjson::Writer< rapidjson::StringBuffer > *  writer) const
overridevirtual

Serialize to JSON

Parameters
writerThe rapidjson writer

Implements lintel::JsonSerializable.


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