INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

gbxsickacfr::gbxiceutilacfr::Notify< Type > Class Template Reference

A data pipe with callback semantics. More...

#include <notify.h>

List of all members.

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 gbxsickacfr::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.

See also:
Buffer, Proxy


Member Function Documentation

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

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

template<class Type>
void gbxsickacfr::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.


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

Generated for GearBox by  doxygen 1.4.5