LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lc::MetaType Class Referenceabstract

#include <metatype.h>

Inheritance diagram for lc::MetaType:

Public Member Functions

 MetaType ()
 
virtual ~MetaType ()=default
 
virtual const std::string id () const =0
 

Friends

std::ostream & operator<< (std::ostream &os, const MetaType &lineWidth)
 

Detailed Description

A base meta type

Definition at line 17 of file metatype.h.

Constructor & Destructor Documentation

lc::MetaType::MetaType ( )
inline

Definition at line 19 of file metatype.h.

19  {
20  }
virtual lc::MetaType::~MetaType ( )
virtualdefault

Member Function Documentation

virtual const std::string lc::MetaType::id ( ) const
pure virtual

ID or primary key of this MetaType. This can be used in a storage manager to identify each individual meta type.

Implemented in lc::MetaColorByBlock, lc::MetaLineWidthByValue, lc::MetaColorByValue, lc::Layer, lc::DxfLinePattern, lc::Block, and lc::MetaLineWidth.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const MetaType lineWidth 
)
friend

Definition at line 31 of file metatype.h.

31  {
32  os << "MetaType()" << std::endl;;
33  return os;
34  }

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