NDEVR
API Documentation
DefaultSetter< t_type >

Helper struct that copies the default value from one TableColumn to another. More...

Inheritance diagram for DefaultSetter< t_type >:
[legend]

Public Member Functions

void setDefaultValueFrom (TableColumn &a, const TableColumn &b)
 Copies the default value from column b into column a.

Detailed Description

template<class t_type>
struct DefaultSetter< t_type >

Helper struct that copies the default value from one TableColumn to another.


The primary template handles most types by converting through string representation. Specializations exist for types like Buffer and String that require different handling.

Definition at line 56 of file TableColumnType.h.

Member Function Documentation

◆ setDefaultValueFrom()

template<class t_type>
void DefaultSetter< t_type >::setDefaultValueFrom ( TableColumn & a,
const TableColumn & b )
inline

Copies the default value from column b into column a.

Parameters
[in]aThe destination column that receives the default value.
[in]bThe source column whose default value is copied.

Definition at line 60 of file TableColumnType.h.

References TableColumn::getDefaultValue(), and TableColumn::setDefaultValue().

Referenced by TableColumnBuffer< t_type >::setDefaultValueFrom().


The documentation for this struct was generated from the following file: