LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
replaceentityevent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "cad/const.h"
4 #include "cad/base/cadentity.h"
5 
6 namespace lc {
14  public:
15  ReplaceEntityEvent(const entity::CADEntity_CSPtr entity) : _entity(entity) {
16  }
17 
22  entity::CADEntity_CSPtr entity() const {
23  return _entity;
24  }
25 
26  private:
27  const entity::CADEntity_CSPtr _entity;
28  };
29 
30 }
ReplaceEntityEvent(const entity::CADEntity_CSPtr entity)
Definition: cadentity.h:12
const entity::CADEntity_CSPtr _entity
std::shared_ptr
entity::CADEntity_CSPtr entity() const
pointer to the new entity.