static_api_ptr_t< t_interface > Class Template Reference

#include <service.h>

List of all members.

Public Member Functions

 static_api_ptr_t ()
service_obscure_refcounting
< t_interface > * 
operator-> () const
t_interface * get_ptr () const


Detailed Description

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 DLL load before service system is initialized; such as static static_api_ptr_t objects or having static_api_ptr_t 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).

Constructor & Destructor Documentation

template<typename t_interface>
static_api_ptr_t< t_interface >::static_api_ptr_t (  )  [inline]


Member Function Documentation

template<typename t_interface>
service_obscure_refcounting<t_interface>* static_api_ptr_t< t_interface >::operator-> (  )  const [inline]

template<typename t_interface>
t_interface* static_api_ptr_t< t_interface >::get_ptr (  )  const [inline]


The documentation for this class was generated from the following file:

Generated on Fri Apr 18 13:56:56 2008 for foobar2000 SDK by  doxygen 1.5.5