OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | List of all members
ossimCallback1wRet< P1, RT > Class Template Referenceabstract

Usage example, note template params can be anything: More...

#include <ossimCallback1wRet.h>

Public Member Functions

 ossimCallback1wRet ()
 
virtual ~ossimCallback1wRet ()
 
virtual RT operator() (P1 p1) const =0
 

Detailed Description

template<class P1, class RT>
class ossimCallback1wRet< P1, RT >

Usage example, note template params can be anything:

Caller interface to register callback:

Callee creation of call back mechanism:

class ProcessFileCB: public ossimCallback1wRet<const ossimFilename&, bool>
{
public:
ProcessFileCB(
:
m_obj(obj),
m_func(func)
{}
virtual bool operator()(const ossimFilename& file) const
{
return ( m_obj->*m_func)(file);
}
private:
bool (ossimImageElevationDatabase::*m_func)(const ossimFilename& file);
};

Making/registering a callback.

new ProcessFileCB(this, &ossimImageElevationDatabase::processFile);
fw->registerProcessFileCallback(cb);

Definition at line 73 of file ossimCallback1wRet.h.

Constructor & Destructor Documentation

◆ ossimCallback1wRet()

template<class P1, class RT>
ossimCallback1wRet< P1, RT >::ossimCallback1wRet ( )
inline

Definition at line 76 of file ossimCallback1wRet.h.

76 {}

◆ ~ossimCallback1wRet()

template<class P1, class RT>
virtual ossimCallback1wRet< P1, RT >::~ossimCallback1wRet ( )
inlinevirtual

Definition at line 77 of file ossimCallback1wRet.h.

77 {}

Member Function Documentation

◆ operator()()

template<class P1, class RT>
virtual RT ossimCallback1wRet< P1, RT >::operator() ( P1  p1) const
pure virtual

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