ARB
Main Page
Namespaces
Classes
Files
File List
File Members
CONVERTALN
fun.h
Go to the documentation of this file.
1
#ifndef FUN_H
2
#define FUN_H
3
4
#ifndef ARBTOOLS_H
5
#include <
arbtools.h
>
6
#endif
7
8
// forward decls for prototypes
9
10
enum
Format
{
11
// input/output formats
12
EMBL
,
13
GENBANK
,
14
MACKE
,
15
SWISSPROT
,
16
LAST_INPUT_FORMAT
=
SWISSPROT
,
17
18
// output-only formats
19
GCG
,
20
NEXUS
,
21
PHYLIP
,
22
FASTDNAML
,
23
PRINTABLE
,
24
25
UNKNOWN
,
26
};
27
28
CONSTEXPR_INLINE
bool
is_input_format
(
Format
inType) {
return
inType <=
LAST_INPUT_FORMAT
; }
29
30
class
Reader
;
31
class
Writer
;
32
33
struct
Embl;
34
struct
Emblref
;
35
struct
EmblSwissprotReader
;
36
struct
GenBank;
37
struct
GenbankRef
;
38
struct
GenbankReader
;
39
struct
Macke;
40
struct
MackeReader
;
41
struct
Paup
;
42
struct
Seq
;
43
struct
Alignment
;
44
45
struct
RDP_comments
;
46
struct
OrgInfo
;
47
struct
SeqInfo
;
48
49
typedef
void (*
RDP_comment_parser
)(
char
*& datastring,
int
start_index,
Reader
& reader);
50
51
class
FormattedFile
:
virtual
Noncopyable
{
52
char
*name_;
53
Format
type_;
54
public
:
55
FormattedFile
() : name_(
NULp
), type_(
UNKNOWN
) {}
56
FormattedFile
(
const
char
*Name,
Format
Type
);
57
~FormattedFile
();
58
59
void
init
(
const
char
*Name,
Format
Type
);
60
61
const
char
*
name
()
const
{
return
name_; }
62
Format
type
()
const
{
return
type_; }
63
};
64
65
#ifndef BUFFEREDFILEREADER_H
66
#include <
BufferedFileReader.h
>
67
#endif
68
#ifndef PROTOTYPES_H
69
#include "
prototypes.h
"
70
#endif
71
72
#else
73
#error fun.h included twice
74
#endif // FUN_H
75
GenbankReader
Definition:
genbank.h:90
Reader
Definition:
reader.h:21
Format
Format
Definition:
fun.h:10
Alignment
Definition:
ali.h:11
FASTDNAML
Definition:
fun.h:22
FormattedFile::init
void init(const char *Name, Format Type)
Definition:
util.cxx:292
FormattedFile::type
Format type() const
Definition:
fun.h:62
RDP_comment_parser
void(* RDP_comment_parser)(char *&datastring, int start_index, Reader &reader)
Definition:
fun.h:49
EmblSwissprotReader
Definition:
embl.h:86
MackeReader
Definition:
macke.h:143
prototypes.h
UNKNOWN
Definition:
fun.h:25
OrgInfo
Definition:
rdp_info.h:14
FormattedFile::FormattedFile
FormattedFile()
Definition:
fun.h:55
GCG
Definition:
fun.h:19
Writer
Definition:
reader.h:95
Paup
Definition:
paup.h:4
FormattedFile::name
const char * name() const
Definition:
fun.h:61
FormattedFile
Definition:
fun.h:51
EMBL
Definition:
fun.h:12
Seq
Definition:
seq.h:43
BufferedFileReader.h
CONSTEXPR_INLINE
#define CONSTEXPR_INLINE
Definition:
cxxforward.h:111
is_input_format
CONSTEXPR_INLINE bool is_input_format(Format inType)
Definition:
fun.h:28
MACKE
Definition:
fun.h:14
Emblref
Definition:
embl.h:14
GENBANK
Definition:
fun.h:13
arbtools.h
SeqInfo
Definition:
rdp_info.h:59
LAST_INPUT_FORMAT
Definition:
fun.h:16
SWISSPROT
Definition:
fun.h:15
FormattedFile::~FormattedFile
~FormattedFile()
Definition:
util.cxx:288
Type
Definition:
arb_proto_2_xsub.cxx:322
PRINTABLE
Definition:
fun.h:23
PHYLIP
Definition:
fun.h:21
NULp
#define NULp
Definition:
cxxforward.h:116
RDP_comments
Definition:
rdp_info.h:96
NEXUS
Definition:
fun.h:20
GenbankRef
Definition:
genbank.h:14
Noncopyable
Definition:
arbtools.h:39
Generated by
1.8.8