OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCallback1wRet.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 // and has a return "RT".
15 //
16 // See link for more detail description:
17 // http://www.tutok.sk/fastgl/callback.html
18 //
19 //----------------------------------------------------------------------------
20 // $Id$
21 
22 #ifndef ossimCallback1wRet_HEADER
23 #define ossimCallback1wRet_HEADER 1
24 
73 template <class P1, class RT> class ossimCallback1wRet
74 {
75 public:
77  virtual ~ossimCallback1wRet(){}
78  virtual RT operator()(P1 p1) const = 0;
79 };
80 
81 #endif /* #ifndef ossimCallback1wRet_HEADER */
virtual RT operator()(P1 p1) const =0
Usage example, note template params can be anything: