Dev Essential
Loading...
Searching...
No Matches
ddl::dd::datamodel::TypeBase Class Referenceabstract

type Base defintion More...

#include <datamodel_types.h>

Inherited by ddl::dd::datamodel::DataType, ddl::dd::datamodel::EnumType, ddl::dd::datamodel::StreamMetaType, and ddl::dd::datamodel::StructType.

Public Member Functions

 TypeBase ()=default
 CTOR.
 
 TypeBase (const TypeBase &)=default
 copy CTOR
 
 TypeBase (TypeBase &&)=default
 move CTOR
 
TypeBaseoperator= (const TypeBase &)=default
 copy assignment operator
 
TypeBaseoperator= (TypeBase &&)=default
 move assignment operator
 
 TypeBase (std::string name)
 CTOR.
 
virtual ~TypeBase ()=default
 DTOR.
 
virtual TypeOfType getTypeOfType () const =0
 Get the Type Of the Type (data_type, enum_type, struct_type, stream_meta_type).
 
virtual void setName (const std::string &name)
 Set the Name.
 
const std::string & getName () const
 Get the Name.
 

Protected Attributes

std::string _name
 name storage value
 

Detailed Description

type Base defintion

Constructor & Destructor Documentation

◆ TypeBase()

ddl::dd::datamodel::TypeBase::TypeBase ( std::string name)

CTOR.

Parameters
nameThe name of the type

Member Function Documentation

◆ getName()

const std::string & ddl::dd::datamodel::TypeBase::getName ( ) const

Get the Name.

Returns
const std::string&

◆ getTypeOfType()

virtual TypeOfType ddl::dd::datamodel::TypeBase::getTypeOfType ( ) const
pure virtual

Get the Type Of the Type (data_type, enum_type, struct_type, stream_meta_type).

Returns
TypeOfType

Implemented in ddl::dd::datamodel::DataType, ddl::dd::datamodel::EnumType, ddl::dd::datamodel::StreamMetaType, and ddl::dd::datamodel::StructType.

◆ operator=() [1/2]

TypeBase & ddl::dd::datamodel::TypeBase::operator= ( const TypeBase & )
default

copy assignment operator

Returns
TypeBase&

◆ operator=() [2/2]

TypeBase & ddl::dd::datamodel::TypeBase::operator= ( TypeBase && )
default

move assignment operator

Returns
TypeBase&

◆ setName()

virtual void ddl::dd::datamodel::TypeBase::setName ( const std::string & name)
virtual

Set the Name.

Parameters
nameThe name of type.
Exceptions
Thismight throw if the set name does already exist in the container this type is part of.

Reimplemented in ddl::dd::datamodel::DataType, ddl::dd::datamodel::EnumType, ddl::dd::datamodel::StreamMetaType, and ddl::dd::datamodel::StructType.


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