Implementation of the latest IVRClientCore interface version.
More...
Implementation of the latest IVRClientCore interface version.
- Author
- Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com
◆ CHECK_INTERFACE_VERSION [1/2]
| #define CHECK_INTERFACE_VERSION |
( |
|
name, |
|
|
|
version |
|
) |
| |
Value: if (std::strcmp(pchInterfaceVersion, vr::I##name##version##_Version) == 0) { \
return vr::EVRInitError::VRInitError_None; \
}
◆ CHECK_INTERFACE_VERSION [2/2]
| #define CHECK_INTERFACE_VERSION |
( |
|
name, |
|
|
|
version_suffix |
|
) |
| |
Value: if (std::strcmp(pchInterfaceVersion, vr::I##name##version_suffix##_Version) == 0) { \
return vr::EVRInitError::VRInitError_None; \
}
◆ GET_CORE_INTERFACE
| #define GET_CORE_INTERFACE |
( |
|
name, |
|
|
|
version |
|
) |
| |
Value: if (std::strcmp(pchNameAndVersion, vr::I##name##version##_Version) == 0) { \
return static_cast<vr::I##name##version *>(this); \
}
◆ GET_INTERFACE
| #define GET_INTERFACE |
( |
|
name, |
|
|
|
version_suffix |
|
) |
| |
Value: if (std::strcmp(pchNameAndVersion, vr::I##name##version_suffix##_Version) == 0) { \
if (!this->name##version_suffix) { \
this->name##version_suffix = std::make_shared<XRT##name##version_suffix>(this); \
} \
return this->name##version_suffix.get(); \
}