Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::ImplementedInterfaceClass Class Reference

ImplementedInterfaceClass documentation. More...

#include <vcf/FoundationKit/InterfaceClass.h>

Inheritance diagram for VCF::ImplementedInterfaceClass:

VCF::InterfaceClass List of all members.

Public Member Functions

 ImplementedInterfaceClass (const String &interfaceName, const String &interfaceID, const String &superInterfaceName)
virtual ~ImplementedInterfaceClass ()
virtual ObjectcreateImplementingInstance () const =0
 creates a new instance of an Object that implements the interface represented by this InterfaceClass.
virtual void * createInterfaceInstance () const =0
 creates an instance of the interface.

Detailed Description

ImplementedInterfaceClass documentation.


Constructor & Destructor Documentation

VCF::ImplementedInterfaceClass::ImplementedInterfaceClass const String interfaceName,
const String interfaceID,
const String superInterfaceName
 

virtual VCF::ImplementedInterfaceClass::~ImplementedInterfaceClass  )  [virtual]
 


Member Function Documentation

virtual Object* VCF::ImplementedInterfaceClass::createImplementingInstance  )  const [pure virtual]
 

creates a new instance of an Object that implements the interface represented by this InterfaceClass.

Since multiple interfaces may be implemented by a given Object, more than one InterfaceClass may end up creating the same Object instance.

virtual void* VCF::ImplementedInterfaceClass::createInterfaceInstance  )  const [pure virtual]
 

creates an instance of the interface.

Sadly this requires the use of a void* since we can't possibly know the correct interface base type. Perhaps this may be replaced the use of the Interface base class, though it will still require a type cast by the caller into the appropriate type


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information