Mercurial > repos > dawe > srf2fastq
comparison srf2fastq/io_lib-1.12.2/io_lib/traceType.h @ 0:d901c9f41a6a default tip
Migrated tool version 1.0.1 from old tool shed archive to new tool shed repository
author | dawe |
---|---|
date | Tue, 07 Jun 2011 17:48:05 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d901c9f41a6a |
---|---|
1 /* | |
2 * Copyright (c) Medical Research Council 1994. All rights reserved. | |
3 * | |
4 * Permission to use, copy, modify and distribute this software and its | |
5 * documentation for any purpose is hereby granted without fee, provided that | |
6 * this copyright and notice appears in all copies. | |
7 * | |
8 * This file was written by James Bonfield, Simon Dear, Rodger Staden, | |
9 * as part of the Staden Package at the MRC Laboratory of Molecular | |
10 * Biology, Hills Road, Cambridge, CB2 2QH, United Kingdom. | |
11 * | |
12 * MRC disclaims all warranties with regard to this software. | |
13 */ | |
14 | |
15 #ifndef _traceType_h | |
16 #define _traceType_h | |
17 | |
18 /* | |
19 * Title: traceType.h | |
20 * | |
21 * File: traceType.h | |
22 * Purpose: determining traceType of traces | |
23 * Last update: Tue Jan 15 1991 | |
24 * | |
25 * Change log :- | |
26 */ | |
27 | |
28 /* ---- Imports ---- */ | |
29 | |
30 #include <stdio.h> /* IMPORT: fopen, fclose, fseek, ftell, fgetc */ | |
31 #include <ctype.h> | |
32 #include <string.h> /* IMPORT: isprint*/ | |
33 | |
34 #include "io_lib/Read.h" /* IMPORT: TT_xxx defines */ | |
35 #include "io_lib/mFILE.h" | |
36 | |
37 #ifdef __cplusplus | |
38 extern "C" { | |
39 #endif | |
40 | |
41 /* | |
42 * Determine the trace type for file 'fn'. | |
43 * | |
44 * Returns: | |
45 * TT_SCF, TT_ABI, TT_ALF, or TT_PLN for success. | |
46 * TT_UNK for unknown type. | |
47 * TT_ERR for error. | |
48 */ | |
49 extern int determine_trace_type(char *fn); | |
50 | |
51 /* | |
52 * Determine the trace type for FILE * 'fp'. | |
53 * | |
54 * Returns: | |
55 * TT_SCF, TT_ABI, TT_ALF, or TT_PLN for success. | |
56 * TT_UNK for unknown type. | |
57 * TT_ERR for error. | |
58 */ | |
59 extern int fdetermine_trace_type(mFILE *fp); | |
60 | |
61 /* | |
62 * Returns a statically declared string containing a 3 character | |
63 * identifier for this trace type. | |
64 * "ERR" represents error, and "UNK" for unknown. | |
65 * Successful values are "SCF", "ABI", "ALF" and "PLN". | |
66 */ | |
67 extern char *trace_type_str(char *traceName); | |
68 | |
69 /* | |
70 * Converts a trace type string to an integer. | |
71 */ | |
72 extern int trace_type_str2int(char *str); | |
73 | |
74 /* | |
75 * Converts a trace type integer to a string. | |
76 */ | |
77 char *trace_type_int2str(int type); | |
78 | |
79 | |
80 #ifdef __cplusplus | |
81 } | |
82 #endif | |
83 | |
84 #endif /*_traceType_h*/ |