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

Links of a database. More...

#include "C16/Links.hpp"

Detailed Description

Public Member Functions

virtual Databasedatabase () const =0
 Gets the database of the links. More...
 
virtual const Linkget (int table_number, int number) const =0
 Gets a link by means of the number of the table and the number of the link. More...
 
virtual const Linkget (const std::string &name) const =0
 Gets a link by means of its name. More...
 
virtual const Linkget (int table_number, const std::string &name) const =0
 Gets a link by means of the number of the table and the name of the link. More...
 
virtual const Linkget_if_existent (int table_number, int number) const =0
 Gets a link by means of the number of the table and the number of the link, if existent. More...
 
virtual const Linkget_if_existent (const std::string &name) const =0
 Gets a link by means of its name, if existent. More...
 
virtual const Linkget_if_existent (int table_number, const std::string &name) const =0
 Gets a link by means of the number of the table and the name of the link, if existent. More...
 

Member Function Documentation

◆ database()

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

Gets the database of the links.

◆ get() [1/3]

virtual const Link& C16::Links::get ( int  table_number,
int  number 
) const
pure virtual

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

Parameters
table_numberNumber of the table
numberNumber of the link
Exceptions
Exception::InexistenceLink inexistent.

◆ get() [2/3]

virtual const Link& C16::Links::get ( const std::string &  name) const
pure virtual

Gets a link by means of its name.

Parameters
nameName of the link (case insensitive)
Exceptions
Exception::InexistenceLink inexistent.

◆ get() [3/3]

virtual const Link& C16::Links::get ( int  table_number,
const std::string &  name 
) const
pure virtual

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

Parameters
table_numberNumber of the table
nameName of the link (case insensitive)
Exceptions
Exception::InexistenceLink inexistent.

◆ get_if_existent() [1/3]

virtual const Link* C16::Links::get_if_existent ( int  table_number,
int  number 
) const
pure virtual

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

Parameters
table_numberNumber of the table
numberNumber of the link
Return values
!= nullptrPointer to the link.
nullptrLink inexistent.

◆ get_if_existent() [2/3]

virtual const Link* C16::Links::get_if_existent ( const std::string &  name) const
pure virtual

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

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

◆ get_if_existent() [3/3]

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

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

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