OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimCallback2wRet.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // File: ossimCallback2wRet.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 two parameters(arguments) "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 ossimCallback2wRet_HEADER
23 #define ossimCallback2wRet_HEADER 1
24 
74 template <class P1, class P2, class RT> class ossimCallback2wRet
75 {
76 public:
78  virtual ~ossimCallback2wRet(){}
79  virtual RT operator()(P1 p1, P2 p2) const = 0;
80 };
81 
82 #endif /* #ifndef ossimCallback2wRet_HEADER */
virtual RT operator()(P1 p1, P2 p2) const =0
Usage example, note template params can be anything: