OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCallback1.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimCallback1wRet.h
4 //
5 // License: MIT
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 // Author: David Burken
10 //
11 // Description:
12 //
13 // Simple templated callback class that takes a single parameter(argument) "P1"
14 // with void return.
15 //
16 // See link for more detail description:
17 // http://www.tutok.sk/fastgl/callback.html
18 //
19 //----------------------------------------------------------------------------
20 // $Id$
21 
22 #ifndef ossimCallback1_HEADER
23 #define ossimCallback1_HEADER 1
24 
73 template <class P1> class ossimCallback1
74 {
75 public:
77  virtual ~ossimCallback1(){}
78  virtual void operator()(P1 p1) const = 0;
79 };
80 
81 #endif /* #ifndef ossimCallback1_HEADER */
virtual void operator()(P1 p1) const =0
virtual ~ossimCallback1()
Usage example, note template params can be anything: