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

#include <SharedMemoryRepositoryDto.h>

Inheritance diagram for lintel::SharedMemoryRepositoryDto:
lintel::JsonSerializable

Public Member Functions

 SharedMemoryRepositoryDto (const SharedMemoryRepository &repository)
 
 SharedMemoryRepositoryDto ()=default
 
const std::string & getUuid () const
 
const std::string & getName () const
 
const std::string & getSegmentName () const
 
SharedMemoryType getType () const
 
size_t getSize () const
 
int32_t getCurrentVersion () const
 
void serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override
 
bool deserialize (const rapidjson::Value &obj) override
 
- Public Member Functions inherited from lintel::JsonSerializable
 JsonSerializable ()=default
 
virtual ~JsonSerializable ()=default
 
virtual std::string serialize () const
 
virtual void deserialize (const std::string &json)
 

Detailed Description

DTO representing a shared memory repository

Constructor & Destructor Documentation

◆ SharedMemoryRepositoryDto() [1/2]

lintel::SharedMemoryRepositoryDto::SharedMemoryRepositoryDto ( const SharedMemoryRepository &  repository)
explicit

Construct from a SharedMemoryRepository model

Parameters
repositoryThe source repository

◆ SharedMemoryRepositoryDto() [2/2]

lintel::SharedMemoryRepositoryDto::SharedMemoryRepositoryDto ( )
default

Default constructor

Member Function Documentation

◆ deserialize()

bool lintel::SharedMemoryRepositoryDto::deserialize ( const rapidjson::Value &  obj)
overridevirtual

Deserialize from JSON

Parameters
objThe JSON value
Returns
True on success

Reimplemented from lintel::JsonSerializable.

◆ getCurrentVersion()

int32_t lintel::SharedMemoryRepositoryDto::getCurrentVersion ( ) const

Get the current version

Returns
The version number

◆ getName()

const std::string & lintel::SharedMemoryRepositoryDto::getName ( ) const

Get the repository name

Returns
The name

◆ getSegmentName()

const std::string & lintel::SharedMemoryRepositoryDto::getSegmentName ( ) const

Get the segment name

Returns
The segment name

◆ getSize()

size_t lintel::SharedMemoryRepositoryDto::getSize ( ) const

Get the repository size

Returns
The size

◆ getType()

SharedMemoryType lintel::SharedMemoryRepositoryDto::getType ( ) const

Get the shared memory type

Returns
The type

◆ getUuid()

const std::string & lintel::SharedMemoryRepositoryDto::getUuid ( ) const

Get the UUID

Returns
The UUID string

◆ serialize()

void lintel::SharedMemoryRepositoryDto::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: