source: trunk/GDE/SINA/builddir/src/famfinder.h

Last change on this file was 19170, checked in by westram, 2 years ago
  • sina source
    • unpack + remove tarball
    • no longer ignore sina builddir.
File size: 2.6 KB
Line 
1/*
2Copyright (c) 2006-2018 Elmar Pruesse <elmar.pruesse@ucdenver.edu>
3
4This file is part of SINA.
5SINA is free software: you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free
7Software Foundation, either version 3 of the License, or (at your
8option) any later version.
9
10SINA is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or
12FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13for more details.
14
15You should have received a copy of the GNU General Public License
16along with SINA.  If not, see <http://www.gnu.org/licenses/>.
17
18Additional permission under GNU GPL version 3 section 7
19
20If you modify SINA, or any covered work, by linking or combining it
21with components of ARB (or a modified version of that software),
22containing parts covered by the terms of the
23ARB-public-library-license, the licensors of SINA grant you additional
24permission to convey the resulting work. Corresponding Source for a
25non-source form of such a combination shall include the source code
26for the parts of ARB used as well as that of the covered work.
27*/
28
29#ifndef _FAMFINDER_H_
30#define _FAMFINDER_H_
31
32#include "tray.h"
33#include "search.h"
34
35#include <memory>
36#include <boost/program_options.hpp>
37
38
39namespace sina {
40
41enum TURN_TYPE {
42    TURN_NONE=0,
43    TURN_REVCOMP=1,
44    TURN_ALL=2
45};
46std::ostream& operator<<(std::ostream& out, const sina::TURN_TYPE& t);
47void validate(boost::any& v, const std::vector<std::string>& values,
48              sina::TURN_TYPE* /*unused*/,int /*unused*/);
49
50
51class famfinder {
52private:
53    class impl;
54    std::shared_ptr<impl> pimpl;
55public:
56    famfinder();
57    famfinder(const famfinder& o);
58    famfinder& operator=(const famfinder& o);
59    ~famfinder();
60    tray operator()(const tray& t);
61
62    int turn_check(const cseq& query, bool all);
63
64    static void get_options_description(boost::program_options::options_description& main,
65                                        boost::program_options::options_description& adv);
66    static void validate_vm(boost::program_options::variables_map& vm,
67                            boost::program_options::options_description& desc);
68    static ENGINE_TYPE get_engine();
69};
70
71
72} // namespace sina
73
74
75
76#endif // _FAMFINDER_H_
77
78/*
79  Local Variables:
80  mode:c++
81  c-file-style:"stroustrup"
82  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . 0))
83  indent-tabs-mode:nil
84  fill-column:99
85  End:
86*/
87// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
Note: See TracBrowser for help on using the repository browser.