26 #ifndef INCLUDED_Interface_decl_h_GUID_8A07B1E7_4F57_4CA7_6BA8_3A262F486AB5 27 #define INCLUDED_Interface_decl_h_GUID_8A07B1E7_4F57_4CA7_6BA8_3A262F486AB5 30 #include <osvr/Util/ClientCallbackTypesC.h> 33 #include <osvr/Util/ReportTypesX.h> 63 #define OSVR_X(TYPE) \ 64 void registerCallback(OSVR_##TYPE##Callback cb, void *userdata); 68 OSVR_INVOKE_REPORT_TYPES_XMACRO()
107 #endif // INCLUDED_Interface_decl_h_GUID_8A07B1E7_4F57_4CA7_6BA8_3A262F486AB5 Header for boost::shared_ptr-based management of Deletables.
Interface handle object.
Definition: Interface_decl.h:54
Client context object: Create and keep one in your application.
Definition: Context_decl.h:57
void free()
Manually free the interface before the context is closed.
Definition: Interface.h:59
::boost::shared_ptr< Deletable > DeletablePtr
Shared-ownership smart pointer to a Deletable, using Boost's shared pointers.
Definition: BoostDeletable.h:42
Header declaring opaque types used by Client and ClientKit.
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Interface()
Empty constructor.
Definition: Interface.h:49
::std::vector< DeletablePtr > DeletableList
Vector of shared-ownership smart pointers.
Definition: BoostDeletable.h:44
bool notEmpty() const
Determine if this interface object is empty (that is, was it once initialized).
Definition: Interface.h:51
Definition: ClientInterface.h:49
ClientContext & getContext()
Get the associated ClientContext.
Definition: Interface.h:57
void takeOwnership(util::boost_util::DeletablePtr const &obj)
Take (shared) ownership of some Deletable object.
Definition: Interface.h:67