INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
gbxiceutilacfr::Notify< Type > Class Template Reference

A data pipe with callback semantics. More...

#include <notify.h>

Public Member Functions

void setNotifyHandler (NotifyHandler< Type > *handler)
 
bool hasNotifyHandler ()
 Returns TRUE is the notify handler has been set and FALSE otherwise.
 
void set (const Type &obj)
 

Protected Member Functions

virtual void internalSet (const Type &obj)
 Reimplement this function for non-standard types.
 

Protected Attributes

NotifyHandler< Type > * handler_
 Interface to the object which is notified of incoming data.
 

Detailed Description

template<class Type>
class gbxiceutilacfr::Notify< Type >

A data pipe with callback semantics.

Write new data with Notify::set. The data is delivered to the data handler by calling NotifyHandler::handleData in the registered NotifyHandler.

When used with smart pointers (e.g. IceUtil smart pointers), this class will not perform a deep copy.

See also
Buffer, Proxy

Member Function Documentation

◆ set()

template<class Type>
void gbxiceutilacfr::Notify< Type >::set ( const Type & obj)

Forwards the obj to the data handler. Raises gbxutilacfr::Exception if the function is called when a notify handler has not been set.

References internalSet().

◆ setNotifyHandler()

template<class Type>
void gbxiceutilacfr::Notify< Type >::setNotifyHandler ( NotifyHandler< Type > * handler)

Sets internal link to the notify handler. If the provided pointer is NULL, the internal link is quietly not set.

References handler_.


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

Generated for GearBox by  doxygen 1.4.5