-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathseq.h
More file actions
57 lines (50 loc) · 1.38 KB
/
seq.h
File metadata and controls
57 lines (50 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Copyright (c) 2005-2018 Hiroyuki Ichida. All rights reserved.
*
* @file seq.h
* @author Hiroyuki Ichida <histfd@gmail.com>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 (GPL-2.0)
* as published by the Free Software Foundation, Inc.
*
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef EXOME_SEQ_H
#include "histd.h"
#include <new>
#include <string>
#include <cstring>
#include <vector>
namespace HI_NAMESPACE{
class CSeq{
public:
RETVAL open(const char *file);
char * read(void);
bool eof(void);
void close(void);
CSeq();
CSeq(const char *file);
~CSeq();
private:
char *fasta_read(void);
void clear(void);
char *WFile;
char *NextStart;
char *CurrentTitle;
char *CurrentFn;
size_t NextPos;
bool IsEof;
bool WFile_use;
RETVAL Warning;
};
RETVAL clean_seq(char *buffer);
} // End of namespace
#define EXOME_SEQ_H
#endif