CONZEPT 16 C++ API
C16::Fields Class Referenceabstract

Fields of a database. More...

#include "C16/Fields.hpp"

Detailed Description

Public Member Functions

virtual Fieldget (int table_number, int subrecord_number, int number) const =0
 Gets a field by means of the number of the table, the number of the subrecord and the number of the field. More...
 
virtual Fieldget (const std::string &name) const =0
 Gets a field by means of its name. More...
 
virtual Fieldget (int table_number, const std::string &name) const =0
 Gets a field by means of the number of the table and the name of the field. More...
 
virtual Fieldget (int table_number, int subrecord_number, const std::string &name) const =0
 Gets a field by means of the number of the table, the number of the subrecord and the name of the field. More...
 
virtual Fieldget_if_existent (int table_number, int subrecord_number, int number) const =0
 Gets a field by means of the number of the table, the number of the subrecord and the number of the field, if existent. More...
 
virtual Fieldget_if_existent (const std::string &name) const =0
 Gets a field by means of its name, if existent. More...
 
virtual Fieldget_if_existent (int table_number, const std::string &name) const =0
 Gets a field by means of the number of the table and the name of the field, if existent. More...
 
virtual Fieldget_if_existent (int table_number, int subrecord_number, const std::string &name) const =0
 Gets a field by means of the number of the table, the number of the subrecord and the name of the field, if existent. More...
 

Member Function Documentation

◆ get() [1/4]

virtual Field& C16::Fields::get ( int  table_number,
int  subrecord_number,
int  number 
) const
pure virtual

Gets a field by means of the number of the table, the number of the subrecord and the number of the field.

Parameters
table_numberNumber of the table
subrecord_numberNumber of the subrecord
numberNumber of the field
Exceptions
Exception::InexistenceField inexistent.

◆ get() [2/4]

virtual Field& C16::Fields::get ( const std::string &  name) const
pure virtual

Gets a field by means of its name.

Parameters
nameName of the field (case insensitive)
Exceptions
Exception::InexistenceField inexistent.

◆ get() [3/4]

virtual Field& C16::Fields::get ( int  table_number,
const std::string &  name 
) const
pure virtual

Gets a field by means of the number of the table and the name of the field.

Parameters
table_numberNumber of the table
nameName of the field (case insensitive)
Exceptions
Exception::InexistenceField inexistent.

◆ get() [4/4]

virtual Field& C16::Fields::get ( int  table_number,
int  subrecord_number,
const std::string &  name 
) const
pure virtual

Gets a field by means of the number of the table, the number of the subrecord and the name of the field.

Parameters
table_numberNumber of the table
subrecord_numberNumber of the subrecord
nameName of the field (case insensitive)
Exceptions
Exception::InexistenceField inexistent.

◆ get_if_existent() [1/4]

virtual Field* C16::Fields::get_if_existent ( int  table_number,
int  subrecord_number,
int  number 
) const
pure virtual

Gets a field by means of the number of the table, the number of the subrecord and the number of the field, if existent.

Parameters
table_numberNumber of the table
subrecord_numberNumber of the subrecord
numberNumber of the field
Return values
!= nullptrPointer to the field.
nullptrField inexistent.

◆ get_if_existent() [2/4]

virtual Field* C16::Fields::get_if_existent ( const std::string &  name) const
pure virtual

Gets a field by means of its name, if existent.

Parameters
nameName of the field (case insensitive)
Return values
!= nullptrPointer to the field.
nullptrField inexistent.

◆ get_if_existent() [3/4]

virtual Field* C16::Fields::get_if_existent ( int  table_number,
const std::string &  name 
) const
pure virtual

Gets a field by means of the number of the table and the name of the field, if existent.

Parameters
table_numberNumber of the table
nameName of the field (case insensitive)
Return values
!= nullptrPointer to the field.
nullptrField inexistent.

◆ get_if_existent() [4/4]

virtual Field* C16::Fields::get_if_existent ( int  table_number,
int  subrecord_number,
const std::string &  name 
) const
pure virtual

Gets a field by means of the number of the table, the number of the subrecord and the name of the field, if existent.

Parameters
table_numberNumber of the table
subrecord_numberNumber of the subrecord
nameName of the field (case insensitive)
Return values
!= nullptrPointer to the field.
nullptrField inexistent.