multovl  1.3
Multiple overlaps of genomic regions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
multovlopts.hh
1 /* <LICENSE>
2 License for the MULTOVL multiple genomic overlap tools
3 
4 Copyright (c) 2007-2012, Dr Andras Aszodi,
5 Campus Science Support Facilities GmbH (CSF),
6 Dr-Bohr-Gasse 3, A-1030 Vienna, Austria, Europe.
7 All rights reserved.
8 
9 Redistribution and use in source and binary forms, with or without
10 modification, are permitted provided that the following conditions are
11 met:
12 
13  * Redistributions of source code must retain the above copyright notice,
14  this list of conditions and the following disclaimer.
15  * Redistributions in binary form must reproduce the above copyright notice,
16  this list of conditions and the following disclaimer in the documentation
17  and/or other materials provided with the distribution.
18  * Neither the name of the Campus Science Support Facilities GmbH
19  nor the names of its contributors may be used to endorse
20  or promote products derived from this software without specific prior
21  written permission.
22 
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS
24 AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
25 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
26 AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
27 THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
30 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
31 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 </LICENSE> */
35 #ifndef MULTOVLOPTS_HEADER
36 #define MULTOVLOPTS_HEADER
37 
38 // == HEADER multovlopts.hh ==
39 
47 // -- Polite header --
48 
49 #include "polite.hh"
50 
51 // == Classes ==
52 
53 namespace multovl {
54 
56 class MultovlOptbase : public virtual Polite
57 {
58  public:
59 
61 
62  unsigned int minmult() const { return _minmult; }
63  unsigned int maxmult() const { return _maxmult; }
64  bool solitary() const { return _minmult == 1; }
65  bool nointrack() const { return _nointrack; }
66  unsigned int ovlen() const { return _ovlen; }
67  bool uniregion() const { return _uniregion; }
68  bool timing() const { return _timing; }
69 
70  virtual
71  std::string param_str() const;
72 
73  virtual
74  std::ostream& print_version(std::ostream& out) const;
75 
76  protected:
77 
78  virtual
79  bool check_variables();
80 
81  virtual
82  std::ostream& version_info(std::ostream& out) const;
83 
84  private:
85 
86  unsigned int _minmult, _maxmult, _ovlen, _copt;
87  bool _uniregion, _nointrack, _timing;
88 };
89 
90 } // namespace multovl
91 
92 #endif // MULTOVLOPTS_HEADER
93 
Wrapper around the overengineered boost::program_options.
Base class for option handling in the multovl family of tools.
Definition: multovlopts.hh:56
virtual std::ostream & version_info(std::ostream &out) const
virtual bool check_variables()
virtual std::ostream & print_version(std::ostream &out) const
Program Options LITE base class. The Polite class provides a wrapper over boost::program_options to m...
Definition: polite.hh:71