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

Subrecord of a table. More...

#include "C16/Subrecord.hpp"

Detailed Description

Public Member Functions

virtual Databasedatabase () const =0
 Gets the database of the subrecord. More...
 
virtual const Tabletable () const =0
 Gets the table of the subrecord. More...
 
virtual int number () const =0
 Gets the number of the subrecord. More...
 
virtual const std::string & name () const =0
 Gets the name of the subrecord. More...
 
virtual const Series< Field > & fields () const =0
 Gets the fields of the subrecord. More...
 

Member Function Documentation

◆ database()

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

Gets the database of the subrecord.

◆ table()

virtual const Table& C16::Subrecord::table ( ) const
pure virtual

Gets the table of the subrecord.

◆ number()

virtual int C16::Subrecord::number ( ) const
pure virtual

Gets the number of the subrecord.

◆ name()

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

Gets the name of the subrecord.

◆ fields()

virtual const Series<Field>& C16::Subrecord::fields ( ) const
pure virtual

Gets the fields of the subrecord.

Returns
Series of fields of the subrecord
Examples
#include "C16/Library.hpp"
using namespace C16;
void subrecord_fields_iterate(const Subrecord& subrecord)
{
// const-Iteration
for (const Field& field : subrecord.fields())
{
...
}
}
Library.hpp
CONZEPT 16 C++ API.
C16
Namespace.
Definition: Array.hpp:6
C16::Subrecord::fields
virtual const Series< Field > & fields() const =0
Gets the fields of the subrecord.
C16::Field
Field of a table.
Definition: Field.hpp:16
C16::Subrecord
Subrecord of a table.
Definition: Subrecord.hpp:16