LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
metainfo.cpp
Go to the documentation of this file.
2 #include "metainfo.h"
3 
4 
5 using namespace lc;
6 
7 
8 std::shared_ptr<MetaInfo> MetaInfo::add(EntityMetaType_CSPtr mt) {
9  this->emplace(mt->metaTypeID(), mt);
10  return shared_from_this();
11 }
12 
17 std::shared_ptr<MetaInfo> MetaInfo::addDxfLinePattern(DxfLinePattern_CSPtr lp) {
18  this->emplace(lp->metaTypeID(), lp);
19  return shared_from_this();
20 }
21 
22 //std::shared_ptr<MetaInfo> MetaInfo::add(std::string name, MetaType_CSPtr mt) {
23 // this->emplace(name, mt);
24 // return shared_from_this();
25 //}
26 
std::shared_ptr< MetaInfo > addDxfLinePattern(DxfLinePattern_CSPtr lp)
Definition: metainfo.cpp:17
Definition: cadentity.h:12
std::shared_ptr< MetaInfo > add(EntityMetaType_CSPtr mt)
Definition: metainfo.cpp:8