c++_api/inc/opals/IExport.hpp
1 #ifndef OPALS_IEXPORT_HPP_INCLUDED
2 #define OPALS_IEXPORT_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, "opalsExport_d.lib")
9  #else
10  #pragma comment(lib, "opalsExport.lib")
11  #endif
12 #endif
13 
14 #include <opals/String.hpp>
15 #include <opals/Path.hpp>
16 #include <opals/TrafPars3dAffine.hpp>
17 #include <opals/Array.hpp>
18 #include <opals/Vector.hpp>
19 
21 
22 namespace opals {
23 
24  namespace opts
25  {
26  namespace Export
27  {
28  /// Options of \ref ModuleExport
29  typedef IGroup< Names::_, false, Cons<
30  ILeaf< Names::inFile, false, opals::Vector<opals::Path> >, Cons<
31  ILeaf< Names::outFile, false, opals::Path >, Cons<
32  ILeaf< Names::oFormat, false, opals::String >, Cons<
33  ILeaf< Names::filter, false, opals::String >, Cons<
34  ILeaf< Names::trafo, false, opals::TrafPars3dAffine >, Cons<
35  ILeaf< Names::restoreOrder, false, bool >, Cons<
36  ILeaf< Names::limit, false, ArrayD4 >, Cons<
37  ILeaf< Names::tileSize, false, double >
38  > > > > > > > > > Options;
39  }
40  }
41 
42  /// Exports vector data stored in an OPALS data manager (ODM) in various data formats.
43  /** TODO:
44  More details on opalsExport */
45  /// \see \ref ModuleExport
46  class OPALS_API IExport : virtual public IModuleBase
47  {
48 
49  public:
50  static IExport* New();
51  static IExport* New( IControlObject &controlObject );
52  static IExport* New( const IModuleBase &parent );
53  static IExport* New( const IModuleBase &parent, IControlObject &controlObject );
54 
55  virtual ~IExport() {}
56 
57  /// \name Access to module-specific options.
58  ///@{
60  virtual Options& opts() = 0;
61  virtual const Options& opts() const = 0;
62  ///}@
63 
64  };
65 
66 };
67 
68 #endif