DDS  ver. 2.0
Public Types | Public Member Functions | Friends | List of all members
dds::commander_cmd::SPropertyRecord Struct Reference

Container for the key-value records with the same property ID. More...

#include <KeyValueManager.h>

Public Types

typedef std::shared_ptr< SPropertyRecordptr_t
 
typedef std::weak_ptr< SPropertyRecordwptr_t
 
typedef std::map< std::string, SPropertyRecord::ptr_tpropertyMap_t
 

Public Member Functions

 SPropertyRecord ()
 
 ~SPropertyRecord ()
 
void addKeyValueRecord (uint64_t _taskID, SKeyValueRecord::ptr_t _keyValueRecord)
 
EKeyUpdateResult updateKeyValue (const protocol_api::SUpdateKeyCmd &_cmd, protocol_api::SUpdateKeyCmd &_serverCmd)
 
std::string getKeyValueString () const
 

Friends

std::ostream & operator<< (std::ostream &_stream, const SPropertyRecord &_value)
 

Detailed Description

Container for the key-value records with the same property ID.

Member Typedef Documentation

◆ propertyMap_t

◆ ptr_t

◆ wptr_t

Constructor & Destructor Documentation

◆ SPropertyRecord()

SPropertyRecord::SPropertyRecord ( )

◆ ~SPropertyRecord()

SPropertyRecord::~SPropertyRecord ( )

Member Function Documentation

◆ addKeyValueRecord()

void SPropertyRecord::addKeyValueRecord ( uint64_t  _taskID,
SKeyValueRecord::ptr_t  _keyValueRecord 
)

◆ getKeyValueString()

string SPropertyRecord::getKeyValueString ( ) const

◆ updateKeyValue()

EKeyUpdateResult SPropertyRecord::updateKeyValue ( const protocol_api::SUpdateKeyCmd _cmd,
protocol_api::SUpdateKeyCmd _serverCmd 
)

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  _stream,
const SPropertyRecord _value 
)
friend

The documentation for this struct was generated from the following files: