PlusFields.h 784 Bytes
Newer Older
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
/*
 * BedPlusInterval.h
 *
 *  Created on: Nov 13, 2012
 *      Author: nek3d
 */

#ifndef PLUSFIELDS_H_
#define PLUSFIELDS_H_

using namespace std;

#include "QuickString.h"
#include <vector>

class SingleLineDelimTextFileReader;

class PlusFields {
public:

	PlusFields();
	virtual ~PlusFields() {}
	void setNumOffsetFields(int numOffsetFields) { _numOffsetFields = numOffsetFields; }
	virtual bool initFromFile(SingleLineDelimTextFileReader *);
	virtual void clear();
	virtual void printFields(QuickString &outBuf) const;

	virtual const QuickString &getField(int fieldNum) const;
	virtual size_t size() const { return _fields.size(); }


protected:
	vector<QuickString> _fields;
	int _numOffsetFields; //could be 3 for BedPlus, but GFF has 8 or 9
};



#endif /* PLUSFIELDS_H_ */