ADTF  3.18.2
TypeBaseabstract

type Base defintion More...

Inheritance diagram for TypeBase:
[legend]

Public Member Functions

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

Protected Attributes

std::string _name
 name storage value
 

Detailed Description

type Base defintion

Definition at line 39 of file datamodel_types.h.

Constructor & Destructor Documentation

◆ TypeBase()

TypeBase ( const std::string &  name)

CTOR.

Parameters
nameThe name of the type

Member Function Documentation

◆ getName()

const std::string& getName ( ) const

Get the Name.

Returns
const std::string&

◆ getTypeOfType()

virtual TypeOfType getTypeOfType ( ) const
pure virtual

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

Returns
TypeOfType

Implemented in StreamMetaType, StructType, EnumType, and DataType.

◆ operator=() [1/2]

TypeBase& operator= ( const TypeBase )
default

copy assignment operator

Returns
TypeBase&

◆ operator=() [2/2]

TypeBase& operator= ( TypeBase &&  )
default

move assignment operator

Returns
TypeBase&

◆ setName()

virtual void 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 StreamMetaType, StructType, EnumType, and DataType.