template<typename t_interface>
class static_api_ptr_t< t_interface >
Helper template used to easily access core services.
Usage: static_api_ptr_t<myclass> api; api->dosomething(); Can be used at any point of code, WITH EXCEPTION of static objects that are initialized during the DLL loading process before the service system is initialized; such as static static_api_ptr_t objects or having static_api_ptr_t instances as members of statically created objects. Throws exception_service_not_found if service could not be reached (which can be ignored for core APIs that are always present unless there is some kind of bug in the code).
Definition at line 533 of file service.h.