Design Pattern Examples
Overview of object-oriented design patterns
Proxy_ProxyService.h File Reference

Declaration of the proxy service, accessed through the GetProxyService() function, as used in the Proxy Pattern. More...

Include dependency graph for Proxy_ProxyService.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __PROXY_PROXYSERVICE_H__
 

Functions

IWorkByProxyGetProxyService (void)
 Obtain the proxy service.
 

Detailed Description

Declaration of the proxy service, accessed through the GetProxyService() function, as used in the Proxy Pattern.

Definition in file Proxy_ProxyService.h.

Macro Definition Documentation

◆ __PROXY_PROXYSERVICE_H__

#define __PROXY_PROXYSERVICE_H__

Definition at line 8 of file Proxy_ProxyService.h.

Function Documentation

◆ GetProxyService()

IWorkByProxy * GetProxyService ( void  )

Obtain the proxy service.

Note that the real service will not be obtained until the first call into the proxy service.

Returns
Returns an IWorkByProxy object representing the proxy service.

Definition at line 75 of file Proxy_ProxyService.c.

References proxy_service.

Referenced by Proxy_Exercise().