13 #include <vlutil/vlSmartPointers.h>
14 #include <vlutil/vlExceptions.h>
47 virtual void makeInvalid();
65 DtTHROW_NEW(DtCorruptedState,
"Interface is invalid.");
80 template <
typename K,
typename V>
81 std::shared_ptr<V>
DtFindProxyByName(std::map<K, std::weak_ptr<V> >& map,
const std::string& name)
83 typedef std::weak_ptr<V> VWP;
84 typedef std::shared_ptr<V> VSP;
86 typename std::map<K, std::weak_ptr<V> >::iterator iter = map.find(name);
89 VSP proctor = iter->second.lock();
bool myValidFlag
Definition: DtProxy.h:71
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
std::shared_ptr< V > DtFindProxyByName(std::map< K, std::weak_ptr< V > > &map, const std::string &name)
Utility function to look up a proxy object by name in a map of weak pointers. Typically used in the #...
Definition: DtProxy.h:81
void validate() const
Check to see if the proxy is valid. This function must be called at the beginning of any public funct...
Definition: DtProxy.h:61
bool isValid() const
Return the valid state of the proxy.
Definition: DtProxy.h:52
Contains DLL export macros.
std::weak_ptr< DtProxy > DtProxyWP
Definition: DtProxy.h:74
The Proxy base class. Proxies are objects that let users interact with objects that may or may not ex...
Definition: DtProxy.h:39
std::shared_ptr< DtProxy > DtProxySP
Definition: DtProxy.h:75