SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_resource_PersistentObject_h
11 #define smtk_resource_PersistentObject_h
13 #include "smtk/CoreExports.h"
16 #include "smtk/SystemConfig.h"
18 #include "smtk/common/UUID.h"
19 #include "smtk/resource/Links.h"
20 #include "smtk/resource/Properties.h"
53 virtual std::string name()
const;
59 return std::dynamic_pointer_cast<T>(shared_from_this());
63 typename T::ConstPtr
as()
const
65 return std::dynamic_pointer_cast<const T>(shared_from_this());
80 #endif // smtk_resource_PersistentObject_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
Links is a virtual class describing the API for connecting one resource/component to another resource...
Definition: Links.h:29
#define smtkEnableSharedPtr(...)
An abbreviation for enabling shared pointers.
Definition: SharedFromThis.h:214
T::ConstPtr as() const
Attempt to cast this object to a subclass.
Definition: PersistentObject.h:63
T::Ptr as()
Attempt to cast this object to a subclass.
Definition: PersistentObject.h:57
Resource/Component properties store data as maps from UUIDs to values and present data as key/value p...
Definition: Properties.h:504
Macros for dealing with shared-pointer classes.
#define smtkTypeMacroBase(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:131
An abstract base class for SMTK resources and their components.
Definition: PersistentObject.h:39