SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_resource_ResourceLinks_h
12 #define smtk_resource_ResourceLinks_h
14 #include "smtk/CoreExports.h"
17 #include "smtk/common/Links.h"
18 #include "smtk/common/UUID.h"
20 #include "smtk/resource/ComponentLinks.h"
21 #include "smtk/resource/Surrogate.h"
23 #include "smtk/resource/Links.h"
44 const std::size_t& index,
45 const std::string& typeName,
47 const std::string& location)
48 :
Surrogate(index, typeName,
id, location)
79 typedef smtk::common::
80 Links<smtk::common::UUID, smtk::common::UUID, smtk::common::UUID, int, ResourceLinkBase>
83 typedef ResourceLinkData::Link Link;
89 const ResourceLinkData& data()
const {
return m_data; }
102 Resource* leftHandSideResource()
override;
103 const Resource* leftHandSideResource()
const override;
106 ResourceLinkData m_data;
112 #endif // smtk_resource_ResourceLinks_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
A resource Surrogate is a stand-in for an actual resource.
Definition: Surrogate.h:33
ResourcePtr resource() const
Return the resource for which the instance is a surrogate.
Definition: Surrogate.cxx:65
ResourceLinkData & data()
Access the underlying link data.
Definition: ResourceLinks.h:88
Definition: ResourceLinks.h:35
The ResourceLinks class is a resource-specific API for manipulating unidirectional links from a Resou...
Definition: ResourceLinks.h:71
The Links class represents a collection of Link-s.
Definition: Links.h:42
An abstract base class for SMTK resources.
Definition: Resource.h:59
Surrogate(const Index &, const std::string &, const smtk::common::UUID &, const std::string &)
Constructor for unresolved resource.
Definition: Surrogate.cxx:26
smtk::shared_ptr< smtk::resource::Resource > ResourcePtr
Definition: PublicPointerDefs.h:295