ITranslate.hpp
1 #ifndef OPALS_ITRANSLATE_HPP_INCLUDED
2 #define OPALS_ITRANSLATE_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, "opalsTranslate_d.lib")
9  #else
10  #pragma comment(lib, "opalsTranslate.lib")
11  #endif
12 #endif
13 
14 #include <opals/Path.hpp>
15 #include <opals/Vector.hpp>
16 #include <opals/String.hpp>
17 #include <opals/TrafPars3dAffine.hpp>
18 
19 namespace opals {
20 
21  namespace opts
22  {
23  namespace Translate
24  {
25  /// Options of \ref ModuleTranslate
26  typedef IGroup< Names::_, false, Cons<
27  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
28  ILeaf< Names::outFile, false, opals::Path >, Cons<
29  ILeaf< Names::iFormat, false, opals::String >, Cons<
30  ILeaf< Names::oFormat, false, opals::String >, Cons<
31  ILeaf< Names::filter, false, opals::String >, Cons<
32  ILeaf< Names::trafo, false, opals::TrafPars3dAffine >, Cons<
33  ILeaf< Names::splitByAttribute, false, opals::String >, Cons<
34  IGroup< Names::crsTrafo, false, Cons<
35  ILeaf< Names::inCRS, false, opals::String >, Cons<
36  ILeaf< Names::outCRS, false, opals::String >, Cons<
37  ILeaf< Names::operation, false, opals::Vector<opals::String> >
38  > > > >, Cons<
39  ILeaf< Names::tileSize, false, double >
40  > > > > > > > > > > Options;
41  }
42  }
43 
44  /// Performs format conversion for vector data files with additional read support of GDAL rasters.
45  /** TODO:
46  More details on opalsTranslate with much more words,
47  possibly on several lines. */
48  /// \see \ref ModuleTranslate
49  class OPALS_API ITranslate : virtual public IModuleBase
50  {
51 
52  public:
53  static ITranslate* New();
54  static ITranslate* New( IControlObject &controlObject );
55  static ITranslate* New( const IModuleBase &parent );
56  static ITranslate* New( const IModuleBase &parent, IControlObject &controlObject );
57 
58  virtual ~ITranslate() {}
59 
60  /// \name Access to module-specific options.
61  ///@{
63  virtual Options& opts() = 0;
64  virtual const Options& opts() const = 0;
65  ///}@
66 
67  };
68 
69 };
70 
71 #endif