Design Pattern Examples
Overview of object-oriented design patterns
Real_Class Class Reference

The real class object that does all the work. More...

Inheritance diagram for Real_Class:
Inheritance graph
Collaboration diagram for Real_Class:
Collaboration graph

Public Member Functions

std::string DoWork (std::string someArgument)
 Does some work on the given argument and returns a new std::string.
 
- Public Member Functions inherited from IWorkByProxy
virtual ~IWorkByProxy ()
 
virtual std::string DoWork (std::string someArgument)=0
 Does some work on the given argument and returns a new std::string.
 

Detailed Description

The real class object that does all the work.

This would normally be a very expensive class to instantiate and/or be running on the server end of a remoting channel. For demonstration purposes, imagine this class takes many seconds to instantiate.

Definition at line 35 of file Proxy_Class.cpp.

Member Function Documentation

◆ DoWork()

std::string DoWork ( std::string  someArgument)
inlinevirtual

Does some work on the given argument and returns a new std::string.

Parameters
someArgumentA string to be worked on.
Returns
A string containing the given argument std::string.

Implements IWorkByProxy.

Definition at line 41 of file Proxy_Class.cpp.

References Helpers::formatstring().


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