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

Subrecords of a database. More...

#include "C16/Subrecords.hpp"

Detailed Description

Public Member Functions

virtual Databasedatabase () const =0
 Gets the database of the subrecords. More...
 
virtual Subrecordget (int table_number, int number) const =0
 Gets a subrecord by means of the number of the table and the number of the subrecord. More...
 
virtual Subrecordget (const std::string &name) const =0
 Gets a subrecord by means of its name. More...
 
virtual Subrecordget (int table_number, const std::string &name) const =0
 Gets a subrecord by means of the number of the table and the name of the subrecord. More...
 
virtual Subrecordget_if_existent (int table_number, int number) const =0
 Gets a subrecord by means of the number of the table and the number of the subrecord, if existent. More...
 
virtual Subrecordget_if_existent (const std::string &name) const =0
 Gets a subrecord by means of its name, if existent. More...
 
virtual Subrecordget_if_existent (int table_number, const std::string &name) const =0
 Gets a subrecord by means of the number of the table and the name of the subrecord, if existent. More...
 

Member Function Documentation

◆ database()

virtual Database& C16::Subrecords::database ( ) const
pure virtual

Gets the database of the subrecords.

◆ get() [1/3]

virtual Subrecord& C16::Subrecords::get ( int  table_number,
int  number 
) const
pure virtual

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

Parameters
table_numberNumber of the table
numberNumber of the subrecord
Exceptions
Exception::InexistenceSubrecord inexistent.

◆ get() [2/3]

virtual Subrecord& C16::Subrecords::get ( const std::string &  name) const
pure virtual

Gets a subrecord by means of its name.

Parameters
nameName of the subrecord (case insensitive)
Exceptions
Exception::InexistenceSubrecord inexistent.

◆ get() [3/3]

virtual Subrecord& C16::Subrecords::get ( int  table_number,
const std::string &  name 
) const
pure virtual

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

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

◆ get_if_existent() [1/3]

virtual Subrecord* C16::Subrecords::get_if_existent ( int  table_number,
int  number 
) const
pure virtual

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

Parameters
table_numberNumber of the table
numberNumber of the subrecord
Return values
!= nullptrPointer to the subrecord.
nullptrSubrecord inexistent.

◆ get_if_existent() [2/3]

virtual Subrecord* C16::Subrecords::get_if_existent ( const std::string &  name) const
pure virtual

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

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

◆ get_if_existent() [3/3]

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

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

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