c++_api/inc/opals/IAddInfo.hpp
1 #ifndef OPALS_IADDINFO_HPP_INCLUDED
2 #define OPALS_IADDINFO_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, "opalsAddInfo_d.lib")
9  #else
10  #pragma comment(lib, "opalsAddInfo.lib")
11  #endif
12 #endif
13 
14 #include <opals/ResamplingMethod.hpp>
15 #include <opals/SelectionMode.hpp>
16 #include <opals/SearchMode.hpp>
17 #include <opals/String.hpp>
18 #include <opals/Path.hpp>
19 #include <opals/Vector.hpp>
20 
21 namespace opals {
22 
23  namespace opts
24  {
25  namespace AddInfo
26  {
27  /// Options of \ref ModuleAddInfo
28  typedef IGroup< Names::_, false, Cons<
29  ILeaf< Names::inFile, false, opals::Path >, Cons<
30  ILeaf< Names::attribute, false, opals::String >, Cons<
31  ILeaf< Names::gridFile, false, opals::Vector<opals::Path> >, Cons<
32  ILeaf< Names::tilePointCount, false, unsigned >, Cons<
33  ILeaf< Names::neighbours, false, int >, Cons<
34  ILeaf< Names::searchRadius, false, double >, Cons<
35  ILeaf< Names::selMode, false, opals::SelectionMode::Type >, Cons<
36  ILeaf< Names::searchMode, false, opals::SearchMode::Type >, Cons<
37  ILeaf< Names::filter, false, opals::Vector<opals::String> >, Cons<
38  ILeaf< Names::resampling, false, opals::ResamplingMethod::Type >
39  > > > > > > > > > > > Options;
40  }
41  }
42 
43  /// Inserts or updates ODM attributes by combining existing attributes and/or grid models.
44  /** AddInfo constitutes a very general and flexible tool for creating
45  new or updating existing point attributes by combining point attributes
46  and/or grid models (grid values interpolated at the point locations). */
47  /// \see \ref ModuleAddInfo
48  class OPALS_API IAddInfo : virtual public IModuleBase
49  {
50 
51  public:
52  static IAddInfo* New();
53  static IAddInfo* New( IControlObject &controlObject );
54  static IAddInfo* New( const IModuleBase &parent );
55  static IAddInfo* New( const IModuleBase &parent, IControlObject &controlObject );
56 
57  virtual ~IAddInfo() {}
58 
59  /// \name Access to module-specific options.
60  ///@{
62  virtual Options& opts() = 0;
63  virtual const Options& opts() const = 0;
64  ///}@
65 
66  };
67 
68 };
69 
70 #endif