fb-cpp 0.0.2
A modern C++ wrapper for the Firebird database API
Loading...
Searching...
No Matches
fbcpp::request::RequestMessage Class Referencefinal

A message buffer of a Firebird request with typed accessors. More...

#include <RequestMessage.h>

Inheritance diagram for fbcpp::request::RequestMessage:
Collaboration diagram for fbcpp::request::RequestMessage:

Public Member Functions

 RequestMessage (RequestMessage &&o) noexcept
 
RequestMessageoperator= (RequestMessage &&o) noexcept
 
 RequestMessage (const RequestMessage &)=delete
 
RequestMessageoperator= (const RequestMessage &)=delete
 
RowgetRow () noexcept
 Returns a Row view over the message, providing typed accessors for reading field values.
 
const std::vector< Descriptor > & getDescriptors () const noexcept
 Returns the format-derived descriptors of the message fields.
 

Friends

class impl::ParameterSetter< RequestMessage, true >
 
class Request
 

Detailed Description

A message buffer of a Firebird request with typed accessors.

RequestMessage is created by Request from a RequestMessageFormat and keeps its buffer private. Values are read through getRow() (a Row over the message) and written with the same setter family used for Statement input parameters.

Setters use the same conversions as Statement. Assigning null (setNull or an empty optional) to a non-nullable field throws because non-nullable request fields do not have null-indicator storage.

Definition at line 77 of file RequestMessage.h.

Constructor & Destructor Documentation

◆ RequestMessage()

fbcpp::request::RequestMessage::RequestMessage ( RequestMessage &&  o)
inlinenoexcept

Definition at line 82 of file RequestMessage.h.

Member Function Documentation

◆ getDescriptors()

const std::vector< Descriptor > & fbcpp::request::RequestMessage::getDescriptors ( ) const
inlinenoexcept

Returns the format-derived descriptors of the message fields.

Definition at line 125 of file RequestMessage.h.

◆ getRow()

Row & fbcpp::request::RequestMessage::getRow ( )
inlinenoexcept

Returns a Row view over the message, providing typed accessors for reading field values.

Definition at line 116 of file RequestMessage.h.

◆ operator=()

RequestMessage & fbcpp::request::RequestMessage::operator= ( RequestMessage &&  o)
inlinenoexcept

Definition at line 93 of file RequestMessage.h.

Friends And Related Symbol Documentation

◆ impl::ParameterSetter< RequestMessage, true >

friend class impl::ParameterSetter< RequestMessage, true >
friend

Definition at line 77 of file RequestMessage.h.

◆ Request

friend class Request
friend

Definition at line 181 of file RequestMessage.h.


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