Tkrzw
Public Member Functions | List of all members
tkrzw::DBM::RecordProcessorSet Class Referencefinal

Record processor to implement DBM::Set. More...

#include <tkrzw_dbm.h>

Public Member Functions

 RecordProcessorSet (Status *status, std::string_view value, bool overwrite, std::string *old_value)
 Constructor. More...
 
std::string_view ProcessFull (std::string_view key, std::string_view value) override
 Processes an existing record. More...
 
std::string_view ProcessEmpty (std::string_view key) override
 Processes an empty record space. More...
 
- Public Member Functions inherited from tkrzw::DBM::RecordProcessor
virtual ~RecordProcessor ()=default
 Destructor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from tkrzw::DBM::RecordProcessor
static const std::string_view NOOP
 The special string indicating no operation. More...
 
static const std::string_view REMOVE
 The special string indicating removing operation. More...
 

Detailed Description

Record processor to implement DBM::Set.

Constructor & Destructor Documentation

◆ RecordProcessorSet()

tkrzw::DBM::RecordProcessorSet::RecordProcessorSet ( Status status,
std::string_view  value,
bool  overwrite,
std::string *  old_value 
)

Constructor.

Parameters
statusThe pointer to a status object to contain the result status.
valueA string of the value to set.
overwriteWhether to overwrite the existing value.
old_valueThe pointer to a string object to contain the existing value.

Member Function Documentation

◆ ProcessFull()

std::string_view tkrzw::DBM::RecordProcessorSet::ProcessFull ( std::string_view  key,
std::string_view  value 
)
overridevirtual

Processes an existing record.

Reimplemented from tkrzw::DBM::RecordProcessor.

◆ ProcessEmpty()

std::string_view tkrzw::DBM::RecordProcessorSet::ProcessEmpty ( std::string_view  key)
overridevirtual

Processes an empty record space.

Reimplemented from tkrzw::DBM::RecordProcessor.