Orfeo Toolbox  3.16
otbTransactorGISTableFunction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbTransactorGISTableFunction_h
19 #define __otbTransactorGISTableFunction_h
20 
21 #include "otbGISTableFunction.h"
22 
23 namespace otb
24 {
25 
37 template <
38  class TInputTable,
39  class TOutput, class TTransactor
40  >
42  public GISTableFunction<TInputTable,
43  TOutput>
44 {
45 public:
47  itkStaticConstMacro(TableDimension, unsigned int,
48  TInputTable::TSpatialDimension);
49 
53  typedef SmartPointer<Self> Pointer;
54  typedef SmartPointer<const Self> ConstPointer;
55 
58 
60  typedef TInputTable InputTableType;
61  typedef TTransactor TransactorType;
62 
64  typedef typename InputTableType::ConnectionType ConnectionType;
65 
67  typedef typename InputTableType::ConstPointer InputTableConstPointer;
68 
70  typedef TOutput OutputType;
71 
73  virtual TOutput Evaluate()
74  {
75  m_Table->GetConnection()->PerformTransaction(TransactorType());
76  }
77 
78 protected:
81  void PrintSelf(std::ostream& os, Indent indent) const;
82 
85 
86 private:
87  TransactorGISTableFunction(const Self &); //purposely not implemented
88  void operator =(const Self&); //purposely not implemented
89 
90 };
91 
92 } // end namespace otb
93 
94 #endif

Generated at Sun Feb 3 2013 00:52:10 for Orfeo Toolbox with doxygen 1.8.1.1