Fields of a database.
More...
#include "C16/Fields.hpp"
|
virtual Field & | get (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 Field & | get (const std::string &name) const =0 |
| Gets a field by means of its name. More...
|
|
virtual Field & | get (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 Field & | get (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 Field * | get_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 Field * | get_if_existent (const std::string &name) const =0 |
| Gets a field by means of its name, if existent. More...
|
|
virtual Field * | get_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 Field * | get_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...
|
|
◆ 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_number | Number of the table |
subrecord_number | Number of the subrecord |
number | Number of the field |
- Exceptions
-
◆ get() [2/4]
virtual Field& C16::Fields::get |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Gets a field by means of its name.
- Parameters
-
name | Name of the field (case insensitive) |
- Exceptions
-
◆ 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_number | Number of the table |
name | Name of the field (case insensitive) |
- Exceptions
-
◆ 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_number | Number of the table |
subrecord_number | Number of the subrecord |
name | Name of the field (case insensitive) |
- Exceptions
-
◆ 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_number | Number of the table |
subrecord_number | Number of the subrecord |
number | Number of the field |
- Return values
-
!= nullptr | Pointer to the field. |
nullptr | Field 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
-
name | Name of the field (case insensitive) |
- Return values
-
!= nullptr | Pointer to the field. |
nullptr | Field 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_number | Number of the table |
name | Name of the field (case insensitive) |
- Return values
-
!= nullptr | Pointer to the field. |
nullptr | Field 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_number | Number of the table |
subrecord_number | Number of the subrecord |
name | Name of the field (case insensitive) |
- Return values
-
!= nullptr | Pointer to the field. |
nullptr | Field inexistent. |