Keys of a database.
More...
#include "C16/Keys.hpp"
|
virtual Database & | database () const =0 |
| Gets the database of the keys. More...
|
|
virtual const Key & | get (int table_number, int number) const =0 |
| Gets a key by means of the number of the table and the number of the key. More...
|
|
virtual const Key & | get (const std::string &name) const =0 |
| Gets a key by means of its name. More...
|
|
virtual const Key & | get (int table_number, const std::string &name) const =0 |
| Gets a key by means of the number of the table and the name of the key. More...
|
|
virtual const Key * | get_if_existent (int table_number, int number) const =0 |
| Gets a key by means of the number of the table and the number of the key, if existent. More...
|
|
virtual const Key * | get_if_existent (const std::string &name) const =0 |
| Gets a key by means of its name, if existent. More...
|
|
virtual const Key * | get_if_existent (int table_number, const std::string &name) const =0 |
| Gets a key by means of the number of the table and the name of the key, if existent. More...
|
|
◆ database()
virtual Database& C16::Keys::database |
( |
| ) |
const |
|
pure virtual |
◆ get() [1/3]
virtual const Key& C16::Keys::get |
( |
int |
table_number, |
|
|
int |
number |
|
) |
| const |
|
pure virtual |
Gets a key by means of the number of the table and the number of the key.
- Parameters
-
table_number | Number of the table |
number | Number of the key |
- Exceptions
-
◆ get() [2/3]
virtual const Key& C16::Keys::get |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Gets a key by means of its name.
- Parameters
-
name | Name of the key (case insensitive) |
- Exceptions
-
◆ get() [3/3]
virtual const Key& C16::Keys::get |
( |
int |
table_number, |
|
|
const std::string & |
name |
|
) |
| const |
|
pure virtual |
Gets a key by means of the number of the table and the name of the key.
- Parameters
-
table_number | Number of the table |
name | Name of the key (case insensitive) |
- Exceptions
-
◆ get_if_existent() [1/3]
virtual const Key* C16::Keys::get_if_existent |
( |
int |
table_number, |
|
|
int |
number |
|
) |
| const |
|
pure virtual |
Gets a key by means of the number of the table and the number of the key, if existent.
- Parameters
-
table_number | Number of the table |
number | Number of the key |
- Return values
-
!= nullptr | Pointer to the key. |
nullptr | Key inexistent. |
◆ get_if_existent() [2/3]
virtual const Key* C16::Keys::get_if_existent |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Gets a key by means of its name, if existent.
- Parameters
-
name | Name of the key (case insensitive) |
- Return values
-
!= nullptr | Pointer to the key. |
nullptr | Key inexistent. |
◆ get_if_existent() [3/3]
virtual const Key* C16::Keys::get_if_existent |
( |
int |
table_number, |
|
|
const std::string & |
name |
|
) |
| const |
|
pure virtual |
Gets a key by means of the number of the table and the name of the key, if existent.
- Parameters
-
table_number | Number of the table |
name | Name of the key (case insensitive) |
- Return values
-
!= nullptr | Pointer to the key. |
nullptr | Key inexistent. |