Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Safir::Dob::Internal::ConsumerBase Class Reference

Base class used when composing more elaborated interfaces. More...

#include <Safir/Dob/Consumer.h>

Inheritance diagram for Safir::Dob::Internal::ConsumerBase:

Public Member Functions

virtual ~ConsumerBase ()
 

Friends

class Safir::Dob::Internal::Callbacks
 

Detailed Description

Base class used when composing more elaborated interfaces.

This class is used to avoid dynamic_casts. Instead of using a dynamic_cast, the Callbacks can call the corresponding To* function, which will convert the pointer to a consumer of the desired type. This is only a virtual function call, instead of a dynamic_cast, ie potentially much quicker.

Constructor & Destructor Documentation

virtual Safir::Dob::Internal::ConsumerBase::~ConsumerBase ( )
virtual

Friends And Related Function Documentation

friend class Safir::Dob::Internal::Callbacks
friend