MVault 1.0.0
Simple c++ database
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
mvlt::VaultOperationResult Struct Reference

Structure for storing the results of MVault operations. More...

#include <VaultOperationResult.h>

Public Member Functions

void SetOpResult (const VaultOperationResultCode &resultCode) noexcept
 A method for setting the result of an operation.
 
std::string ResultCodeString () const noexcept
 Function for getting a text description of the operation result.
 
void Print () const noexcept
 Method for printing operation result.
 

Public Attributes

bool IsOperationSuccess = true
 A variable for determining whether the operation was successful.
 
VaultOperationResultCode ResultCode = VaultOperationResultCode::Idle
 The result code of the operation.
 
std::string Key
 Requested key.
 
std::type_index RequestedType = typeid(void)
 Requested key type.
 
std::type_index SavedType = typeid(void)
 Saved key type.
 

Friends

bool operator== (const VaultOperationResult &resA, const VaultOperationResult &resB) noexcept
 Friend comparison operator.
 

Detailed Description

Structure for storing the results of MVault operations.

Member Function Documentation

◆ ResultCodeString()

std::string mvlt::VaultOperationResult::ResultCodeString ( ) const
noexcept

Function for getting a text description of the operation result.

Returns
Operation description string

◆ SetOpResult()

void mvlt::VaultOperationResult::SetOpResult ( const VaultOperationResultCode resultCode)
noexcept

A method for setting the result of an operation.

Parameters
[in]resultCodeoperation code

Friends And Related Symbol Documentation

◆ operator==

Friend comparison operator.

Parameters
[in]resAfirst object to compare
[in]resBsecond object to compare
Returns
true if objects equal otherwise return false

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