CONZEPT 16 C++ API
C16::Record Class Reference

Record buffer to operate on records of a table. More...

#include "C16/Record.hpp"

Detailed Description

Record buffer to operate on records of a table.

Examples

Iteration (Key)

#include "C16/Library.hpp"
using namespace C16;
void records_iterate_key(const Table& table, int key_number)
{
for
(
Result result = record.read_key(key_number, Place::FIRST);
result < Result::NO_REC;
result = record.read_key(key_number, Place::NEXT)
)
{
...
}
}

Iteration (Link)

#include "C16/Library.hpp"
using namespace C16;
void records_iterate_link(const Table& table, const Record& record_source, int link_number)
{
for
(
Result result = record.read_link(record_source, link_number, Place::FIRST);
result < Result::NO_REC;
result = record.read_link(record_source, link_number, Place::NEXT)
)
{
...
}
}

Getting field value

#include "C16/Library.hpp"
using namespace C16;
void record_getting_field_value(const Record& record)
{
// Gets the field value of the record buffer
// by means of the name of the field.
Value::Int value_int = record.field_int("myintfield");
Value::Alpha value_alpha = record.field_alpha("myalphafield");
// Gets the field value of the record buffer
// by means of the number of the subrecord and the number of the field.
value_int = record.field_int(1, 1);
value_alpha = record.field_alpha(1, 2);
// For frequent getting of the field value of the same record buffer
// save the field buffer to avoid performance impact due to
// construction and validation:
// Gets a constant field buffer of the record buffer
// by means of the name of the field.
Record::FieldConstInt field_int = record.field_int("myintfield");
// Gets a constant field buffer of the record buffer
// by means of the number of the subrecord and the number of the field.
field_int = record.field_int(1, 1);
field_alpha = record.field_alpha(1, 2);
for (...)
{
// Gets the value of the field buffer.
Value::Int value_int = field_int;
Value::Alpha value_alpha = field_alpha;
...
}
}

Setting field value

#include "C16/Library.hpp"
using namespace C16;
void record_setting_field_value(Record& record)
{
// Sets the field value of the record buffer
// by means of the name of the field.
record.field_int("myintfield") = 123;
record.field_alpha("myalphafield") = "abc";
// Sets the field value of the record buffer
// by means of the number of the subrecord and the number of the field.
record.field_int(1, 1) = 123;
record.field_alpha(1, 2) = "abc";
// For frequent setting of the field value of the same record buffer
// save the field buffer to avoid performance impact due to
// construction and validation:
// Gets a field buffer of the record buffer
// by means of the name of the field.
Record::FieldInt field_int = record.field_int("myintfield");
Record::FieldAlpha field_alpha = record.field_alpha("myalphafield");
// Gets a field buffer of the record buffer
// by means of the number of the subrecord and the number of the field.
field_int = record.field_int(1, 1);
field_alpha = record.field_alpha(1, 2);
for (...)
{
// Sets the value of the field buffer.
field_int = 123;
field_alpha = "abc";
...
}
}

Classes

class  Field
 Field buffer of a record buffer. More...
 
class  FieldCommon
 Common field buffer of a record buffer. More...
 
class  FieldConst
 Constant field buffer of a record buffer. More...
 
class  FieldConstGeneric
 Generic constant field buffer of a record buffer. More...
 
class  FieldGeneric
 Generic field buffer of a record buffer. More...
 

Public Types

using FieldConstAlpha = FieldConst< Value::Alpha >
 Short name alias. More...
 
using FieldConstLogic = FieldConst< Value::Logic >
 Short name alias. More...
 
using FieldConstByte = FieldConst< Value::Byte >
 Short name alias. More...
 
using FieldConstWord = FieldConst< Value::Word >
 Short name alias. More...
 
using FieldConstInt = FieldConst< Value::Int >
 Short name alias. More...
 
using FieldConstBigint = FieldConst< Value::Bigint >
 Short name alias. More...
 
using FieldConstFloat = FieldConst< Value::Float >
 Short name alias. More...
 
using FieldConstDecimal = FieldConst< Value::Decimal >
 Short name alias. More...
 
using FieldConstDate = FieldConst< Value::Date >
 Short name alias. More...
 
using FieldConstTime = FieldConst< Value::Time >
 Short name alias. More...
 
using FieldAlpha = Field< Value::Alpha >
 Short name alias. More...
 
using FieldLogic = Field< Value::Logic >
 Short name alias. More...
 
using FieldByte = Field< Value::Byte >
 Short name alias. More...
 
using FieldWord = Field< Value::Word >
 Short name alias. More...
 
using FieldInt = Field< Value::Int >
 Short name alias. More...
 
using FieldBigint = Field< Value::Bigint >
 Short name alias. More...
 
using FieldFloat = Field< Value::Float >
 Short name alias. More...
 
using FieldDecimal = Field< Value::Decimal >
 Short name alias. More...
 
using FieldDate = Field< Value::Date >
 Short name alias. More...
 
using FieldTime = Field< Value::Time >
 Short name alias. More...
 

Public Member Functions

 Record (const Table &table)
 Constructs a record buffer by means of its table. More...
 
 Record (const Database &database, int table_number)
 Constructs a record buffer by means of the database and the number of its table. More...
 
 Record (const Database &database, const std::string &table_name)
 Constructs a record buffer by means of the database and the name of its table. More...
 
 Record (const Record &other)
 Constructs a copy of another record buffer. More...
 
Recordoperator= (const Record &other)
 Assigns the record buffer from another record buffer. More...
 
bool operator== (const Record &other) const
 Gets if the loaded record equals another record. More...
 
const Databasedatabase () const
 Gets the database of the record buffer. More...
 
const Tabletable () const
 Gets the table of the record buffer. More...
 
bool loaded () const
 Gets if a record is loaded into the record buffer. More...
 
long long int id () const
 Gets the id of the loaded record. More...
 
long int length () const
 Gets the length of the loaded record. More...
 
long int length_packed () const
 Gets the length of the loaded, packed record. More...
 
long int position_key (int key_number, bool reverse=false) const
 Gets the position of the loaded record dependent on a key. More...
 
long int position_key (const Key &key, bool reverse=false) const
 Gets the position of the loaded record dependent on a key. More...
 
long int position_link (const Record &record_source, int link_number, bool reverse=false) const
 Gets the position of the loaded record dependent on a link. More...
 
Result read_id (long long int id, Locking locking=Locking::NONE)
 Reads a record by means of its id into the record buffer. More...
 
Result read_key (int key_number, Place place=Place::KEY, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of a key and a place into the record buffer. More...
 
Result read_key (const Key &key, Place place=Place::KEY, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of a key and a place into the record buffer. More...
 
Result read_link (const Record &record_source, int link_number, Place place, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of a link and a place into the record buffer. More...
 
Result read_position_key (int key_number, long int position, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of its position dependent on a key into the record buffer. More...
 
Result read_position_link (const Record &record_source, int link_number, long int position, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of its position dependent on a link into the record buffer. More...
 
Result reload (Locking locking=Locking::NONE)
 Reloads the loaded record. More...
 
void unload ()
 Unloads the loaded record. More...
 
Result lock (Locking locking=Locking::LOCK_EXCLUSIVE)
 Applies a locking to the loaded record. More...
 
Result lock_key (int key_number, Locking locking=Locking::LOCK_EXCLUSIVE, bool reverse=false) const
 Applies a locking to a record by means of a key. More...
 
Result test_key (int key_number, bool reverse=false) const
 Tests the existence of a record by means of a key. More...
 
Result insert (Locking locking=Locking::NONE)
 Inserts a record into the table. More...
 
Result replace (Locking locking=Locking::NONE)
 Replaces the loaded record. More...
 
Result erase ()
 Deletes a record from the table. More...
 
template<typename Value >
FieldConst< Value > field (const C16::Field &field) const
 Convenience alias for Record::FieldConst<Value>(const Record& record, const Field& field). More...
 
template<typename Value >
Field< Value > field (const C16::Field &field)
 Convenience alias for Record::Field<Value>(Record& record, const Field& field). More...
 
template<typename Value >
FieldConst< Value > field (int subrecord_number, int field_number) const
 Convenience alias for Record::FieldConst<Value>(const Record& record, int subrecord_number, int field_number). More...
 
template<typename Value >
Field< Value > field (int subrecord_number, int field_number)
 Convenience alias for Record::Field<Value>(Record& record, int subrecord_number, int field_number). More...
 
template<typename Value >
FieldConst< Value > field (const std::string &field_name) const
 Convenience alias for Record::FieldConst<Value>(const Record& record, const std::string& field_name). More...
 
template<typename Value >
Field< Value > field (const std::string &field_name)
 Convenience alias for Record::Field<Value>(Record& record, const std::string& field_name). More...
 
template<typename Value >
FieldConst< Value > field_const (const C16::Field &field) const
 Convenience alias for Record::FieldConst<Value>(const Record& record, const Field& field). More...
 
template<typename Value >
FieldConst< Value > field_const (int subrecord_number, int field_number) const
 Convenience alias for Record::FieldConst<Value>(const Record& record, int subrecord_number, int field_number). More...
 
template<typename Value >
FieldConst< Value > field_const (const std::string &field_name) const
 Convenience alias for Record::FieldConst<Value>(const Record& record, const std::string& field_name). More...
 
FieldConstAlpha field_alpha (const C16::Field &field) const
 Short name alias for field<Value::Alpha>(const C16::Field& field) const.
More...
 
FieldAlpha field_alpha (const C16::Field &field)
 Short name alias for field<Value::Alpha>(const C16::Field& field).
More...
 
FieldConstAlpha field_alpha (int subrecord_number, int field_number) const
 Short name alias for field<Value::Alpha>(int subrecord_number, int field_number) const.
More...
 
FieldAlpha field_alpha (int subrecord_number, int field_number)
 Short name alias for field<Value::Alpha>(int subrecord_number, int field_number).
More...
 
FieldConstAlpha field_alpha (const std::string &field_name) const
 Short name alias for field<Value::Alpha>(const std::string& field_name) const.
More...
 
FieldAlpha field_alpha (const std::string &field_name)
 Short name alias for field<Value::Alpha>(const std::string& field_name).
More...
 
FieldConstAlpha field_alpha_const (const C16::Field &field) const
 Short name alias for field_const<Value::Alpha>(const C16::Field& field) const.
More...
 
FieldConstAlpha field_alpha_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Alpha>(int subrecord_number, int field_number) const.
More...
 
FieldConstAlpha field_alpha_const (const std::string &field_name) const
 Short name alias for field_const<Value::Alpha>(const std::string&) const.
More...
 
FieldConstLogic field_logic (const C16::Field &field) const
 Short name alias for field<Value::Logic>(const C16::Field& field) const.
More...
 
FieldLogic field_logic (const C16::Field &field)
 Short name alias for field<Value::Logic>(const C16::Field& field).
More...
 
FieldConstLogic field_logic (int subrecord_number, int field_number) const
 Short name alias for field<Value::Logic>(int subrecord_number, int field_number) const.
More...
 
FieldLogic field_logic (int subrecord_number, int field_number)
 Short name alias for field<Value::Logic>(int subrecord_number, int field_number).
More...
 
FieldConstLogic field_logic (const std::string &field_name) const
 Short name alias for field<Value::Logic>(const std::string& field_name) const.
More...
 
FieldLogic field_logic (const std::string &field_name)
 Short name alias for field<Value::Logic>(const std::string& field_name).
More...
 
FieldConstLogic field_logic_const (const C16::Field &field) const
 Short name alias for field_const<Value::Logic>(const C16::Field& field) const.
More...
 
FieldConstLogic field_logic_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Logic>(int subrecord_number, int field_number) const.
More...
 
FieldConstLogic field_logic_const (const std::string &field_name) const
 Short name alias for field_const<Value::Logic>(const std::string&) const.
More...
 
FieldConstByte field_byte (const C16::Field &field) const
 Short name alias for field<Value::Byte>(const C16::Field& field) const.
More...
 
FieldByte field_byte (const C16::Field &field)
 Short name alias for field<Value::Byte>(const C16::Field& field).
More...
 
FieldConstByte field_byte (int subrecord_number, int field_number) const
 Short name alias for field<Value::Byte>(int subrecord_number, int field_number) const.
More...
 
FieldByte field_byte (int subrecord_number, int field_number)
 Short name alias for field<Value::Byte>(int subrecord_number, int field_number).
More...
 
FieldConstByte field_byte (const std::string &field_name) const
 Short name alias for field<Value::Byte>(const std::string& field_name) const.
More...
 
FieldByte field_byte (const std::string &field_name)
 Short name alias for field<Value::Byte>(const std::string& field_name).
More...
 
FieldConstByte field_byte_const (const C16::Field &field) const
 Short name alias for field_const<Value::Byte>(const C16::Field& field) const.
More...
 
FieldConstByte field_byte_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Byte>(int subrecord_number, int field_number) const.
More...
 
FieldConstByte field_byte_const (const std::string &field_name) const
 Short name alias for field_const<Value::Byte>(const std::string&) const.
More...
 
FieldConstWord field_word (const C16::Field &field) const
 Short name alias for field<Value::Word>(const C16::Field& field) const.
More...
 
FieldWord field_word (const C16::Field &field)
 Short name alias for field<Value::Word>(const C16::Field& field).
More...
 
FieldConstWord field_word (int subrecord_number, int field_number) const
 Short name alias for field<Value::Word>(int subrecord_number, int field_number) const.
More...
 
FieldWord field_word (int subrecord_number, int field_number)
 Short name alias for field<Value::Word>(int subrecord_number, int field_number).
More...
 
FieldConstWord field_word (const std::string &field_name) const
 Short name alias for field<Value::Word>(const std::string& field_name) const.
More...
 
FieldWord field_word (const std::string &field_name)
 Short name alias for field<Value::Word>(const std::string& field_name).
More...
 
FieldConstWord field_word_const (const C16::Field &field) const
 Short name alias for field_const<Value::Word>(const C16::Field& field) const.
More...
 
FieldConstWord field_word_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Word>(int subrecord_number, int field_number) const.
More...
 
FieldConstWord field_word_const (const std::string &field_name) const
 Short name alias for field_const<Value::Word>(const std::string&) const.
More...
 
FieldConstInt field_int (const C16::Field &field) const
 Short name alias for field<Value::Int>(const C16::Field& field) const.
More...
 
FieldInt field_int (const C16::Field &field)
 Short name alias for field<Value::Int>(const C16::Field& field).
More...
 
FieldConstInt field_int (int subrecord_number, int field_number) const
 Short name alias for field<Value::Int>(int subrecord_number, int field_number) const.
More...
 
FieldInt field_int (int subrecord_number, int field_number)
 Short name alias for field<Value::Int>(int subrecord_number, int field_number).
More...
 
FieldConstInt field_int (const std::string &field_name) const
 Short name alias for field<Value::Int>(const std::string& field_name) const.
More...
 
FieldInt field_int (const std::string &field_name)
 Short name alias for field<Value::Int>(const std::string& field_name).
More...
 
FieldConstInt field_int_const (const C16::Field &field) const
 Short name alias for field_const<Value::Int>(const C16::Field& field) const.
More...
 
FieldConstInt field_int_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Int>(int subrecord_number, int field_number) const.
More...
 
FieldConstInt field_int_const (const std::string &field_name) const
 Short name alias for field_const<Value::Int>(const std::string&) const.
More...
 
FieldConstBigint field_bigint (const C16::Field &field) const
 Short name alias for field<Value::Bigint>(const C16::Field& field) const.
More...
 
FieldBigint field_bigint (const C16::Field &field)
 Short name alias for field<Value::Bigint>(const C16::Field& field).
More...
 
FieldConstBigint field_bigint (int subrecord_number, int field_number) const
 Short name alias for field<Value::Bigint>(int subrecord_number, int field_number) const.
More...
 
FieldBigint field_bigint (int subrecord_number, int field_number)
 Short name alias for field<Value::Bigint>(int subrecord_number, int field_number).
More...
 
FieldConstBigint field_bigint (const std::string &field_name) const
 Short name alias for field<Value::Bigint>(const std::string& field_name) const.
More...
 
FieldBigint field_bigint (const std::string &field_name)
 Short name alias for field<Value::Bigint>(const std::string& field_name).
More...
 
FieldConstBigint field_bigint_const (const C16::Field &field) const
 Short name alias for field_const<Value::Bigint>(const C16::Field& field) const.
More...
 
FieldConstBigint field_bigint_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Bigint>(int subrecord_number, int field_number) const.
More...
 
FieldConstBigint field_bigint_const (const std::string &field_name) const
 Short name alias for field_const<Value::Bigint>(const std::string&) const.
More...
 
FieldConstFloat field_float (const C16::Field &field) const
 Short name alias for field<Value::Float>(const C16::Field& field) const.
More...
 
FieldFloat field_float (const C16::Field &field)
 Short name alias for field<Value::Float>(const C16::Field& field).
More...
 
FieldConstFloat field_float (int subrecord_number, int field_number) const
 Short name alias for field<Value::Float>(int subrecord_number, int field_number) const.
More...
 
FieldFloat field_float (int subrecord_number, int field_number)
 Short name alias for field<Value::Float>(int subrecord_number, int field_number).
More...
 
FieldConstFloat field_float (const std::string &field_name) const
 Short name alias for field<Value::Float>(const std::string& field_name) const.
More...
 
FieldFloat field_float (const std::string &field_name)
 Short name alias for field<Value::Float>(const std::string& field_name).
More...
 
FieldConstFloat field_float_const (const C16::Field &field) const
 Short name alias for field_const<Value::Float>(const C16::Field& field) const.
More...
 
FieldConstFloat field_float_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Float>(int subrecord_number, int field_number) const.
More...
 
FieldConstFloat field_float_const (const std::string &field_name) const
 Short name alias for field_const<Value::Float>(const std::string&) const.
More...
 
FieldConstDecimal field_decimal (const C16::Field &field) const
 Short name alias for field<Value::Decimal>(const C16::Field& field) const.
More...
 
FieldDecimal field_decimal (const C16::Field &field)
 Short name alias for field<Value::Decimal>(const C16::Field& field).
More...
 
FieldConstDecimal field_decimal (int subrecord_number, int field_number) const
 Short name alias for field<Value::Decimal>(int subrecord_number, int field_number) const.
More...
 
FieldDecimal field_decimal (int subrecord_number, int field_number)
 Short name alias for field<Value::Decimal>(int subrecord_number, int field_number).
More...
 
FieldConstDecimal field_decimal (const std::string &field_name) const
 Short name alias for field<Value::Decimal>(const std::string& field_name) const.
More...
 
FieldDecimal field_decimal (const std::string &field_name)
 Short name alias for field<Value::Decimal>(const std::string& field_name).
More...
 
FieldConstDecimal field_decimal_const (const C16::Field &field) const
 Short name alias for field_const<Value::Decimal>(const C16::Field& field) const.
More...
 
FieldConstDecimal field_decimal_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Decimal>(int subrecord_number, int field_number) const.
More...
 
FieldConstDecimal field_decimal_const (const std::string &field_name) const
 Short name alias for field_const<Value::Decimal>(const std::string&) const.
More...
 
FieldConstDate field_date (const C16::Field &field) const
 Short name alias for field<Value::Date>(const C16::Field& field) const.
More...
 
FieldDate field_date (const C16::Field &field)
 Short name alias for field<Value::Date>(const C16::Field& field).
More...
 
FieldConstDate field_date (int subrecord_number, int field_number) const
 Short name alias for field<Value::Date>(int subrecord_number, int field_number) const.
More...
 
FieldDate field_date (int subrecord_number, int field_number)
 Short name alias for field<Value::Date>(int subrecord_number, int field_number).
More...
 
FieldConstDate field_date (const std::string &field_name) const
 Short name alias for field<Value::Date>(const std::string& field_name) const.
More...
 
FieldDate field_date (const std::string &field_name)
 Short name alias for field<Value::Date>(const std::string& field_name).
More...
 
FieldConstDate field_date_const (const C16::Field &field) const
 Short name alias for field_const<Value::Date>(const C16::Field& field) const.
More...
 
FieldConstDate field_date_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Date>(int subrecord_number, int field_number) const.
More...
 
FieldConstDate field_date_const (const std::string &field_name) const
 Short name alias for field_const<Value::Date>(const std::string&) const.
More...
 
FieldConstTime field_time (const C16::Field &field) const
 Short name alias for field<Value::Time>(const C16::Field& field) const.
More...
 
FieldTime field_time (const C16::Field &field)
 Short name alias for field<Value::Time>(const C16::Field& field).
More...
 
FieldConstTime field_time (int subrecord_number, int field_number) const
 Short name alias for field<Value::Time>(int subrecord_number, int field_number) const.
More...
 
FieldTime field_time (int subrecord_number, int field_number)
 Short name alias for field<Value::Time>(int subrecord_number, int field_number).
More...
 
FieldConstTime field_time (const std::string &field_name) const
 Short name alias for field<Value::Time>(const std::string& field_name) const.
More...
 
FieldTime field_time (const std::string &field_name)
 Short name alias for field<Value::Time>(const std::string& field_name).
More...
 
FieldConstTime field_time_const (const C16::Field &field) const
 Short name alias for field_const<Value::Time>(const C16::Field& field) const.
More...
 
FieldConstTime field_time_const (int subrecord_number, int field_number) const
 Short name alias for field_const<Value::Time>(int subrecord_number, int field_number) const.
More...
 
FieldConstTime field_time_const (const std::string &field_name) const
 Short name alias for field_const<Value::Time>(const std::string&) const.
More...
 

Member Typedef Documentation

◆ FieldConstAlpha

◆ FieldConstLogic

◆ FieldConstByte

◆ FieldConstWord

◆ FieldConstInt

Short name alias.

◆ FieldConstBigint

◆ FieldConstFloat

◆ FieldConstDecimal

◆ FieldConstDate

◆ FieldConstTime

◆ FieldAlpha

Short name alias.

◆ FieldLogic

Short name alias.

◆ FieldByte

Short name alias.

◆ FieldWord

Short name alias.

◆ FieldInt

Short name alias.

◆ FieldBigint

Short name alias.

◆ FieldFloat

Short name alias.

◆ FieldDecimal

Short name alias.

◆ FieldDate

Short name alias.

◆ FieldTime

Short name alias.

Constructor & Destructor Documentation

◆ Record() [1/4]

C16::Record::Record ( const Table table)
explicit

Constructs a record buffer by means of its table.

Parameters
tableTable the record buffer operates on

◆ Record() [2/4]

C16::Record::Record ( const Database database,
int  table_number 
)

Constructs a record buffer by means of the database and the number of its table.

Parameters
databaseDatabase the record buffer operates on
table_numberNumber of the table the record buffer operates on
Exceptions
Exception::InexistenceTable inexistent.

◆ Record() [3/4]

C16::Record::Record ( const Database database,
const std::string &  table_name 
)

Constructs a record buffer by means of the database and the name of its table.

Parameters
databaseDatabase the record buffer operates on
table_nameName of the table the record buffer operates on (case insensitive)
Exceptions
Exception::InexistenceTable inexistent.

◆ Record() [4/4]

C16::Record::Record ( const Record other)

Constructs a copy of another record buffer.

Parameters
otherAnother record buffer

Member Function Documentation

◆ operator=()

Record& C16::Record::operator= ( const Record other)

Assigns the record buffer from another record buffer.

Parameters
otherAnother record buffer
Returns
This record buffer
Exceptions
Exception::DifferenceTable different.

◆ operator==()

bool C16::Record::operator== ( const Record other) const

Gets if the loaded record equals another record.

Parameters
otherAnother record buffer
Exceptions
Exception::DifferenceTable different.

◆ database()

const Database& C16::Record::database ( ) const

Gets the database of the record buffer.

◆ table()

const Table& C16::Record::table ( ) const

Gets the table of the record buffer.

◆ loaded()

bool C16::Record::loaded ( ) const

Gets if a record is loaded into the record buffer.

◆ id()

long long int C16::Record::id ( ) const

Gets the id of the loaded record.

◆ length()

long int C16::Record::length ( ) const

Gets the length of the loaded record.

◆ length_packed()

long int C16::Record::length_packed ( ) const

Gets the length of the loaded, packed record.

◆ position_key() [1/2]

long int C16::Record::position_key ( int  key_number,
bool  reverse = false 
) const

Gets the position of the loaded record dependent on a key.

Parameters
key_numberNumber of the key
reverseOption to get the reverse position of the record
Exceptions
Exception::InexistenceKey inexistent.
Note
The returned position is only an approximation of the actual position.

◆ position_key() [2/2]

long int C16::Record::position_key ( const Key key,
bool  reverse = false 
) const

Gets the position of the loaded record dependent on a key.

Parameters
keyKey
reverseOption to get the reverse position of the record
Exceptions
Exception::DifferenceTable different.
Table of the key is different to table of the record buffer.
Note
The returned position is only an approximation of the actual position.

◆ position_link()

long int C16::Record::position_link ( const Record record_source,
int  link_number,
bool  reverse = false 
) const

Gets the position of the loaded record dependent on a link.

Parameters
record_sourceRecord buffer of the table of the link
link_numberNumber of the link
reverseOption to get the reverse position of the record
Return values
-1Record does not belong to the link.
Exceptions
Exception::InexistenceLink inexistent.
Exception::DifferenceTable different.
Destination table of the link is different to table of the record buffer.

◆ read_id()

Result C16::Record::read_id ( long long int  id,
Locking  locking = Locking::NONE 
)

Reads a record by means of its id into the record buffer.

Parameters
idId of the record
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InvalidityLocking invalid.

◆ read_key() [1/2]

Result C16::Record::read_key ( int  key_number,
Place  place = Place::KEY,
Locking  locking = Locking::NONE,
bool  reverse = false 
)

Reads a record by means of a key and a place into the record buffer.

Parameters
key_numberNumber of the key
placePlace of the record
Place::KEYReads the record identified by the key value of the record buffer.
Place::FIRSTReads the first record of the table.
Place::LASTReads the last record of the table.
Place::NEXTReads the record following the record identified by the key value of the record buffer.
Place::PREVIOUSReads the record preceding the record identified by the key value of the record buffer.
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
reverseOption to use the key in reverse order
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::MULTI_KEYRecord with first matching key value loaded and locking applied. Occurs only if the key is not unique.
Result::NO_KEYRecord inexistent but following record existent and loaded (order of key values).
Result::LAST_RECRecord and following record inexistent but preceding record existent and loaded (order of key values).
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InexistenceKey inexistent.
Exception::InvalidityLocking invalid.

◆ read_key() [2/2]

Result C16::Record::read_key ( const Key key,
Place  place = Place::KEY,
Locking  locking = Locking::NONE,
bool  reverse = false 
)

Reads a record by means of a key and a place into the record buffer.

Parameters
keyKey
placePlace of the record
Place::KEYReads the record identified by the key value of the record buffer.
Place::FIRSTReads the first record of the table.
Place::LASTReads the last record of the table.
Place::NEXTReads the record following the record identified by the key value of the record buffer.
Place::PREVIOUSReads the record preceding the record identified by the key value of the record buffer.
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
reverseOption to use the key in reverse order
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::MULTI_KEYRecord with first matching key value loaded and locking applied. Occurs only if the key is not unique.
Result::NO_KEYRecord inexistent but following record existent and loaded (order of key values).
Result::LAST_RECRecord and following record inexistent but preceding record existent and loaded (order of key values).
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::DifferenceTable different.
Table of the key is different to table of the record buffer.
Exception::InvalidityPlace invalid.
Exception::InvalidityLocking invalid.
See also
Example

◆ read_link()

Result C16::Record::read_link ( const Record record_source,
int  link_number,
Place  place,
Locking  locking = Locking::NONE,
bool  reverse = false 
)

Reads a record by means of a link and a place into the record buffer.

Parameters
record_sourceRecord buffer of the table of the link
link_numberNumber of the link
placePlace of the record
Place::FIRSTReads the first record of the linked records.
Place::LASTReads the last record of the linked records.
Place::NEXTReads the record of the linked records following the record identified by the key value of the record buffer.
Place::PREVIOUSReads the record of the linked records preceding the record identified by the key value of the record buffer.
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
reverseOption to use the destination key of the link in reverse order
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InexistenceLink inexistent.
Exception::DifferenceTable different.
Destination table of the link is different to table of the record buffer.
Exception::InvalidityPlace invalid.
Exception::InvalidityLocking invalid.
See also
Example

◆ read_position_key()

Result C16::Record::read_position_key ( int  key_number,
long int  position,
Locking  locking = Locking::NONE,
bool  reverse = false 
)

Reads a record by means of its position dependent on a key into the record buffer.

Parameters
key_numberNumber of the key
positionPosition of the record dependent on the key (1 to Table::records_count())
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
reverseOption to use the key in reverse order
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InexistenceKey inexistent.
Exception::InvalidityLocking invalid.
See also
position_key

◆ read_position_link()

Result C16::Record::read_position_link ( const Record record_source,
int  link_number,
long int  position,
Locking  locking = Locking::NONE,
bool  reverse = false 
)

Reads a record by means of its position dependent on a link into the record buffer.

Parameters
record_sourceRecord buffer of the table of the link
link_numberNumber of the link
positionPosition of the record dependent on the link (1 to Table::records_count_link())
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
reverseOption to use the destination key of the link in reverse order
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InexistenceLink inexistent.
Exception::DifferenceTable different.
Table of the link is different to table of the record buffer.
Exception::InvalidityLocking invalid.
See also
position_link

◆ reload()

Result C16::Record::reload ( Locking  locking = Locking::NONE)

Reloads the loaded record.

The record is identified by its id.

Parameters
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
Returns
Result
Return values
Result::OKRecord loaded and locking applied.
Result::LOCKEDRecord loaded but already locked.
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InvalidityLocking invalid.

◆ unload()

void C16::Record::unload ( )

Unloads the loaded record.

◆ lock()

Result C16::Record::lock ( Locking  locking = Locking::LOCK_EXCLUSIVE)

Applies a locking to the loaded record.

The record is identified by its id.

Parameters
lockingLocking to apply to the record
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
Returns
Result
Return values
Result::OKLocking applied.
Result::LOCKEDRecord already locked.
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InvalidityLocking invalid.

◆ lock_key()

Result C16::Record::lock_key ( int  key_number,
Locking  locking = Locking::LOCK_EXCLUSIVE,
bool  reverse = false 
) const

Applies a locking to a record by means of a key.

The record is identified by the key value of the record buffer corresponding to the key.

Parameters
key_numberNumber of the key
lockingLocking to apply to the record
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SINGLEApplies an exclusive, singulary lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
reverseOption to use the key in reverse order
Returns
Result
Return values
Result::OKLocking applied.
Result::LOCKEDRecord already locked.
Result::MULTI_KEYLocking applied to record with first matching key value. Occurs only if the key is not unique.
Result::NO_KEYRecord inexistent but following record existent (order of key values).
Result::LAST_RECRecord and following record inexistent but preceding record existent (order of key values).
Result::NO_RECRecord inexistent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InexistenceKey inexistent.
Exception::InvalidityLocking invalid.

◆ test_key()

Result C16::Record::test_key ( int  key_number,
bool  reverse = false 
) const

Tests the existence of a record by means of a key.

The record is identified by the key value of the record buffer corresponding to the key.

Parameters
key_numberNumber of the key
reverseOption to use the key in reverse order
Returns
Result
Return values
Result::OKRecord existent.
Result::MULTI_KEYRecord existent. Occurs only if the key is not unique.
Result::NO_KEYRecord inexistent but following record existent (order of key values).
Result::LAST_RECRecord and following record inexistent but preceding record existent (order of key values).
Result::NO_RECNo record existent.
Result::NO_RIGHTSPermissions insufficient.
Exceptions
Exception::InexistenceKey inexistent.

◆ insert()

Result C16::Record::insert ( Locking  locking = Locking::NONE)

Inserts a record into the table.

Parameters
lockingLocking to apply to the record
Locking::NONEDoes not lock the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Returns
Result
Return values
Result::OKRecord inserted and locking applied.
Result::EXISTSRecord already existent.
Result::NO_RIGHTSPermissions insufficient.
Result::DEADLOCKDeadlock occurred.
Exceptions
Exception::InvalidityLocking invalid.

◆ replace()

Result C16::Record::replace ( Locking  locking = Locking::NONE)

Replaces the loaded record.

The record is identified by its id.

Parameters
lockingLocking to apply to the record
Locking::NONEDoes not change the lock of the record.
Locking::LOCK_EXCLUSIVEApplies an exclusive lock to the record.
Locking::LOCK_FORCERemoves all locks by all users from the record and applies an exclusive lock to the record.
Locking::LOCK_SHAREDApplies a shared lock to the record.
Locking::UNLOCKRemoves a lock applied by the accessing user from the record.
Returns
Result
Return values
Result::OKRecord replaced and locking applied.
Result::NO_RECRecord inexistent.
Result::NO_LOCKRecord not exclusively locked.
Result::NO_RIGHTSPermissions insufficient.
Result::DEADLOCKDeadlock occurred.
Exceptions
Exception::InvalidityLocking invalid.

◆ erase()

Result C16::Record::erase ( )

Deletes a record from the table.

The record is identified by the key value of the record buffer corresponding to the 1st key of the table.

Returns
Result
Return values
Result::OKRecord deleted.
Result::LOCKEDRecord locked.
Result::NO_KEYRecord inexistent but following record existent (order of key values).
Result::LAST_RECRecord and following record inexistent but preceding record existent (order of key values).
Result::NO_RECNo record existent.
Result::NO_RIGHTSPermissions insufficient.
Result::DEADLOCKDeadlock occurred.

◆ field() [1/6]

◆ field() [2/6]

◆ field() [3/6]

◆ field() [4/6]

◆ field() [5/6]

◆ field() [6/6]

◆ field_const() [1/3]

◆ field_const() [2/3]

◆ field_const() [3/3]

◆ field_alpha() [1/6]

FieldConstAlpha C16::Record::field_alpha ( const C16::Field field) const

◆ field_alpha() [2/6]

FieldAlpha C16::Record::field_alpha ( const C16::Field field)

◆ field_alpha() [3/6]

FieldConstAlpha C16::Record::field_alpha ( int  subrecord_number,
int  field_number 
) const

◆ field_alpha() [4/6]

FieldAlpha C16::Record::field_alpha ( int  subrecord_number,
int  field_number 
)

◆ field_alpha() [5/6]

FieldConstAlpha C16::Record::field_alpha ( const std::string &  field_name) const

◆ field_alpha() [6/6]

FieldAlpha C16::Record::field_alpha ( const std::string &  field_name)

◆ field_alpha_const() [1/3]

FieldConstAlpha C16::Record::field_alpha_const ( const C16::Field field) const

◆ field_alpha_const() [2/3]

FieldConstAlpha C16::Record::field_alpha_const ( int  subrecord_number,
int  field_number 
) const

◆ field_alpha_const() [3/3]

FieldConstAlpha C16::Record::field_alpha_const ( const std::string &  field_name) const

◆ field_logic() [1/6]

FieldConstLogic C16::Record::field_logic ( const C16::Field field) const

◆ field_logic() [2/6]

FieldLogic C16::Record::field_logic ( const C16::Field field)

◆ field_logic() [3/6]

FieldConstLogic C16::Record::field_logic ( int  subrecord_number,
int  field_number 
) const

◆ field_logic() [4/6]

FieldLogic C16::Record::field_logic ( int  subrecord_number,
int  field_number 
)

◆ field_logic() [5/6]

FieldConstLogic C16::Record::field_logic ( const std::string &  field_name) const

◆ field_logic() [6/6]

FieldLogic C16::Record::field_logic ( const std::string &  field_name)

◆ field_logic_const() [1/3]

FieldConstLogic C16::Record::field_logic_const ( const C16::Field field) const

◆ field_logic_const() [2/3]

FieldConstLogic C16::Record::field_logic_const ( int  subrecord_number,
int  field_number 
) const

◆ field_logic_const() [3/3]

FieldConstLogic C16::Record::field_logic_const ( const std::string &  field_name) const

◆ field_byte() [1/6]

FieldConstByte C16::Record::field_byte ( const C16::Field field) const

◆ field_byte() [2/6]

FieldByte C16::Record::field_byte ( const C16::Field field)

◆ field_byte() [3/6]

FieldConstByte C16::Record::field_byte ( int  subrecord_number,
int  field_number 
) const

◆ field_byte() [4/6]

FieldByte C16::Record::field_byte ( int  subrecord_number,
int  field_number 
)

◆ field_byte() [5/6]

FieldConstByte C16::Record::field_byte ( const std::string &  field_name) const

◆ field_byte() [6/6]

FieldByte C16::Record::field_byte ( const std::string &  field_name)

◆ field_byte_const() [1/3]

FieldConstByte C16::Record::field_byte_const ( const C16::Field field) const

◆ field_byte_const() [2/3]

FieldConstByte C16::Record::field_byte_const ( int  subrecord_number,
int  field_number 
) const

◆ field_byte_const() [3/3]

FieldConstByte C16::Record::field_byte_const ( const std::string &  field_name) const

◆ field_word() [1/6]

FieldConstWord C16::Record::field_word ( const C16::Field field) const

◆ field_word() [2/6]

FieldWord C16::Record::field_word ( const C16::Field field)

◆ field_word() [3/6]

FieldConstWord C16::Record::field_word ( int  subrecord_number,
int  field_number 
) const

◆ field_word() [4/6]

FieldWord C16::Record::field_word ( int  subrecord_number,
int  field_number 
)

◆ field_word() [5/6]

FieldConstWord C16::Record::field_word ( const std::string &  field_name) const

◆ field_word() [6/6]

FieldWord C16::Record::field_word ( const std::string &  field_name)

◆ field_word_const() [1/3]

FieldConstWord C16::Record::field_word_const ( const C16::Field field) const

◆ field_word_const() [2/3]

FieldConstWord C16::Record::field_word_const ( int  subrecord_number,
int  field_number 
) const

◆ field_word_const() [3/3]

FieldConstWord C16::Record::field_word_const ( const std::string &  field_name) const

◆ field_int() [1/6]

FieldConstInt C16::Record::field_int ( const C16::Field field) const

◆ field_int() [2/6]

FieldInt C16::Record::field_int ( const C16::Field field)

◆ field_int() [3/6]

FieldConstInt C16::Record::field_int ( int  subrecord_number,
int  field_number 
) const

◆ field_int() [4/6]

FieldInt C16::Record::field_int ( int  subrecord_number,
int  field_number 
)

◆ field_int() [5/6]

FieldConstInt C16::Record::field_int ( const std::string &  field_name) const

◆ field_int() [6/6]

FieldInt C16::Record::field_int ( const std::string &  field_name)

◆ field_int_const() [1/3]

FieldConstInt C16::Record::field_int_const ( const C16::Field field) const

◆ field_int_const() [2/3]

FieldConstInt C16::Record::field_int_const ( int  subrecord_number,
int  field_number 
) const

◆ field_int_const() [3/3]

FieldConstInt C16::Record::field_int_const ( const std::string &  field_name) const

◆ field_bigint() [1/6]

FieldConstBigint C16::Record::field_bigint ( const C16::Field field) const

◆ field_bigint() [2/6]

FieldBigint C16::Record::field_bigint ( const C16::Field field)

◆ field_bigint() [3/6]

FieldConstBigint C16::Record::field_bigint ( int  subrecord_number,
int  field_number 
) const

◆ field_bigint() [4/6]

FieldBigint C16::Record::field_bigint ( int  subrecord_number,
int  field_number 
)

◆ field_bigint() [5/6]

FieldConstBigint C16::Record::field_bigint ( const std::string &  field_name) const

◆ field_bigint() [6/6]

FieldBigint C16::Record::field_bigint ( const std::string &  field_name)

◆ field_bigint_const() [1/3]

FieldConstBigint C16::Record::field_bigint_const ( const C16::Field field) const

◆ field_bigint_const() [2/3]

FieldConstBigint C16::Record::field_bigint_const ( int  subrecord_number,
int  field_number 
) const

◆ field_bigint_const() [3/3]

FieldConstBigint C16::Record::field_bigint_const ( const std::string &  field_name) const

◆ field_float() [1/6]

FieldConstFloat C16::Record::field_float ( const C16::Field field) const

◆ field_float() [2/6]

FieldFloat C16::Record::field_float ( const C16::Field field)

◆ field_float() [3/6]

FieldConstFloat C16::Record::field_float ( int  subrecord_number,
int  field_number 
) const

◆ field_float() [4/6]

FieldFloat C16::Record::field_float ( int  subrecord_number,
int  field_number 
)

◆ field_float() [5/6]

FieldConstFloat C16::Record::field_float ( const std::string &  field_name) const

◆ field_float() [6/6]

FieldFloat C16::Record::field_float ( const std::string &  field_name)

◆ field_float_const() [1/3]

FieldConstFloat C16::Record::field_float_const ( const C16::Field field) const

◆ field_float_const() [2/3]

FieldConstFloat C16::Record::field_float_const ( int  subrecord_number,
int  field_number 
) const

◆ field_float_const() [3/3]

FieldConstFloat C16::Record::field_float_const ( const std::string &  field_name) const

◆ field_decimal() [1/6]

FieldConstDecimal C16::Record::field_decimal ( const C16::Field field) const

◆ field_decimal() [2/6]

FieldDecimal C16::Record::field_decimal ( const C16::Field field)

◆ field_decimal() [3/6]

FieldConstDecimal C16::Record::field_decimal ( int  subrecord_number,
int  field_number 
) const

◆ field_decimal() [4/6]

FieldDecimal C16::Record::field_decimal ( int  subrecord_number,
int  field_number 
)

◆ field_decimal() [5/6]

FieldConstDecimal C16::Record::field_decimal ( const std::string &  field_name) const

◆ field_decimal() [6/6]

FieldDecimal C16::Record::field_decimal ( const std::string &  field_name)

◆ field_decimal_const() [1/3]

FieldConstDecimal C16::Record::field_decimal_const ( const C16::Field field) const

◆ field_decimal_const() [2/3]

FieldConstDecimal C16::Record::field_decimal_const ( int  subrecord_number,
int  field_number 
) const

◆ field_decimal_const() [3/3]

FieldConstDecimal C16::Record::field_decimal_const ( const std::string &  field_name) const

◆ field_date() [1/6]

FieldConstDate C16::Record::field_date ( const C16::Field field) const

◆ field_date() [2/6]

FieldDate C16::Record::field_date ( const C16::Field field)

◆ field_date() [3/6]

FieldConstDate C16::Record::field_date ( int  subrecord_number,
int  field_number 
) const

◆ field_date() [4/6]

FieldDate C16::Record::field_date ( int  subrecord_number,
int  field_number 
)

◆ field_date() [5/6]

FieldConstDate C16::Record::field_date ( const std::string &  field_name) const

◆ field_date() [6/6]

FieldDate C16::Record::field_date ( const std::string &  field_name)

◆ field_date_const() [1/3]

FieldConstDate C16::Record::field_date_const ( const C16::Field field) const

◆ field_date_const() [2/3]

FieldConstDate C16::Record::field_date_const ( int  subrecord_number,
int  field_number 
) const

◆ field_date_const() [3/3]

FieldConstDate C16::Record::field_date_const ( const std::string &  field_name) const

◆ field_time() [1/6]

FieldConstTime C16::Record::field_time ( const C16::Field field) const

◆ field_time() [2/6]

FieldTime C16::Record::field_time ( const C16::Field field)

◆ field_time() [3/6]

FieldConstTime C16::Record::field_time ( int  subrecord_number,
int  field_number 
) const

◆ field_time() [4/6]

FieldTime C16::Record::field_time ( int  subrecord_number,
int  field_number 
)

◆ field_time() [5/6]

FieldConstTime C16::Record::field_time ( const std::string &  field_name) const

◆ field_time() [6/6]

FieldTime C16::Record::field_time ( const std::string &  field_name)

◆ field_time_const() [1/3]

FieldConstTime C16::Record::field_time_const ( const C16::Field field) const

◆ field_time_const() [2/3]

FieldConstTime C16::Record::field_time_const ( int  subrecord_number,
int  field_number 
) const

◆ field_time_const() [3/3]

FieldConstTime C16::Record::field_time_const ( const std::string &  field_name) const
C16::Value::Int
std::int32_t Int
Integer number (signed, 32 bits).
Definition: Native.hpp:24
C16::Record::field_alpha
FieldConstAlpha field_alpha(const C16::Field &field) const
Short name alias for field<Value::Alpha>(const C16::Field& field) const.
C16::Record::table
const Table & table() const
Gets the table of the record buffer.
C16::Place::NEXT
@ NEXT
Operate on the next entity.
C16::Place::FIRST
@ FIRST
Operate on the first entity.
C16::Record::FieldConst
Constant field buffer of a record buffer.
Definition: Record.hpp:1004
Library.hpp
CONZEPT 16 C++ API.
C16::Value::Alpha
std::string Alpha
String.
Definition: Native.hpp:16
C16::Record
Record buffer to operate on records of a table.
Definition: Record.hpp:173
C16::Result
Result
Result of an operation related to a database entity.
Definition: Result.hpp:12
C16
Namespace.
Definition: Array.hpp:6
C16::Record::Field
Field buffer of a record buffer.
Definition: Record.hpp:1115
C16::Record::field_int
FieldConstInt field_int(const C16::Field &field) const
Short name alias for field<Value::Int>(const C16::Field& field) const.
C16::Result::NO_REC
@ NO_REC
Entity inexistent.
C16::Table
Table of a database.
Definition: Table.hpp:21