IDiff.hpp
1 #ifndef OPALS_IDIFF_HPP_INCLUDED
2 #define OPALS_IDIFF_HPP_INCLUDED
3 
4 #include <opals/IModuleBase.hpp>
5 
6 #if !defined(OPALS_EXPORTS) && !defined(OPALS_MODULE_EXPORTS)
7  #if defined _DEBUG && !defined OPALS_NO_DEBUG
8  #pragma comment(lib, "opalsDiff_d.lib")
9  #else
10  #pragma comment(lib, "opalsDiff.lib")
11  #endif
12 #endif
13 
14 #include <opals/String.hpp>
15 #include <opals/Path.hpp>
16 #include <opals/Array.hpp>
17 #include <opals/ResamplingMethod.hpp>
18 #include <opals/GridLimit.hpp>
19 #include <opals/ApplyTrafo.hpp>
20 #include <opals/TrafPars3dAffine.hpp>
21 
23 
24 namespace opals {
25 
26  namespace opts
27  {
28  namespace Diff
29  {
30  /// Options of \ref ModuleDiff
31  typedef IGroup< Names::_, false, Cons<
32  ILeaf< Names::inFile, false, ArrayPath2 >, Cons<
33  ILeaf< Names::outFile, false, opals::Path >, Cons<
34  ILeaf< Names::oFormat, false, opals::String >, Cons<
35  ILeaf< Names::gridSize, false, double >, Cons<
36  ILeaf< Names::noData, false, double >, Cons<
37  ILeaf< Names::limit, false, opals::GridLimit >, Cons<
38  ILeaf< Names::applyTrafo, false, opals::ApplyTrafo::Type >, Cons<
39  ILeaf< Names::trafo, false, opals::TrafPars3dAffine >, Cons<
40  ILeaf< Names::resampling, false, opals::ResamplingMethod::Type >
41  > > > > > > > > > > Options;
42  }
43  }
44 
45  /// Calculates a difference grid model based on either two grids or a one grid and a horizontal reference plane.
46  /** TODO:
47  More details on opalsDiff with much more words,
48  possibly on several lines. */
49  /// \see \ref ModuleDiff
50  class OPALS_API IDiff : virtual public IModuleBase
51  {
52 
53  public:
54  static IDiff* New();
55  static IDiff* New( IControlObject &controlObject );
56  static IDiff* New( const IModuleBase &parent );
57  static IDiff* New( const IModuleBase &parent, IControlObject &controlObject );
58 
59  virtual ~IDiff() {}
60 
61  /// \name Access to module-specific options.
62  ///@{
64  virtual Options& opts() = 0;
65  virtual const Options& opts() const = 0;
66  ///}@
67 
68  };
69 
70 };
71 
72 #endif