HPS::DWG::Component
-
class HPS::DWG::Component : public HPS::Component
The Component class is a smart pointer. It represents a variety of DWG components. The primary purpose of this class is simply to provide access to the underlying DWG object for use by DWG library functions.
Subclassed by HPS::DWG::Layer
Public Functions
-
Component()
The default constructor creates an uninitialized DWG::Component object. The Type() function will return Type::None.
-
Component(DWG::Component &&in_that)
The move constructor creates an DWG::Component by transferring the underlying object of the rvalue reference to this DWG::Component.
- Parameters
in_that – An rvalue reference to an DWG::Component to take the underlying object from.
-
Component(DWG::Component const &in_that)
The copy constructor creates an DWG::Component object that shares the underlying smart-pointer of the source DWG::Component.
- Parameters
in_that – The source DWG::Component to copy.
-
Component(HPS::Component const &in_that)
This constructor creates an DWG::Component object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of an DWG::Component object. Otherwise the copy will fail and the resulting DWG::Component will be invalid.
- Parameters
in_that – The source Component to copy.
-
DWGObjectID *GetDWGObjectID() const
-
inline virtual HPS::Type ObjectType() const
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns
The declared type of the object in question, which may differ from the true, underlying type.
-
Component &operator=(DWG::Component &&in_that)
The move assignment operator transfers the underlying object of the rvalue reference to this DWG::Component.
- Parameters
in_that – An rvalue reference to an DWG::Component to take the underlying object from.
- Returns
A reference to this DWG::Component.
Public Static Attributes
-
static const HPS::Type staticType = HPS::Type::DWGComponent
-
Component()