IOverlap.hpp
1 #ifndef OPALS_IOVERLAP_HPP_INCLUDED
2 #define OPALS_IOVERLAP_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, "opalsOverlap_d.lib")
9  #else
10  #pragma comment(lib, "opalsOverlap.lib")
11  #endif
12 #endif
13 
14 #include <utility>
15 #include <opals/Path.hpp>
16 #include <opals/Array.hpp>
17 #include <opals/Vector.hpp>
18 #include <opals/OverlapDef.hpp>
19 
21 
22 namespace opals {
23 
24  namespace opts
25  {
26  namespace Overlap
27  {
28  /// Options of \ref ModuleOverlap
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::minArea, false, opals::OverlapDef >, Cons<
33  ILeaf< Names::borderFile, false, opals::Path >, Cons<
34  ILeaf< Names::overlapFile, false, opals::Path >, Cons<
35  ILeaf< Names::pairList, true, opals::Vector<StripPair> >
36  > > > > > > > Options;
37  }
38  }
39 
40  /// Analyses a set of strip boundaries and determines all overlapping strip pairs.
41  /** TODO:
42  More details on opalsOverlap */
43  /// \see \ref ModuleOverlap
44  class OPALS_API IOverlap : virtual public IModuleBase
45  {
46 
47  public:
48  static IOverlap* New();
49  static IOverlap* New( IControlObject &controlObject );
50  static IOverlap* New( const IModuleBase &parent );
51  static IOverlap* New( const IModuleBase &parent, IControlObject &controlObject );
52 
53  virtual ~IOverlap() {}
54 
55  /// \name Access to module-specific options.
56  ///@{
58  virtual Options& opts() = 0;
59  virtual const Options& opts() const = 0;
60  ///}@
61 
62  };
63 
64 };
65 
66 #endif