| 1 |
/** |
| 2 |
|
| 3 |
Copyright (c) 2010-2014, Daniel S. Standage and CONTRIBUTORS |
| 4 |
|
| 5 |
The AEGeAn Toolkit is distributed under the ISC License. See |
| 6 |
the 'LICENSE' file in the AEGeAn source code distribution or |
| 7 |
online at https://github.com/standage/AEGeAn/blob/master/LICENSE. |
| 8 |
|
| 9 |
**/ |
| 10 |
#ifndef AEGEAN_FILTER_STREAM |
| 11 |
#define AEGEAN_FILTER_STREAM |
| 12 |
|
| 13 |
#include "extended/node_stream_api.h" |
| 14 |
#include "core/hashmap_api.h" |
| 15 |
#include "AgnUnitTest.h" |
| 16 |
|
| 17 |
/** |
| 18 |
* @class AgnFilterStream |
| 19 |
* |
| 20 |
* Implements the GenomeTools ``GtNodeStream`` interface. This is a node stream |
| 21 |
* used to select features of a certain type from a node stream. |
| 22 |
*/ |
| 23 |
typedef struct AgnFilterStream AgnFilterStream; |
| 24 |
|
| 25 |
/** |
| 26 |
* @function Class constructor. The keys of the ``typestokeep`` hashmap should |
| 27 |
* be the type(s) to be kept from the node stream. Any non-NULL value can be |
| 28 |
* associated with those keys. |
| 29 |
*/ |
| 30 |
GtNodeStream* agn_filter_stream_new(GtNodeStream *in_stream, |
| 31 |
GtHashmap *typestokeep); |
| 32 |
|
| 33 |
/** |
| 34 |
* @function Run unit tests for this class. Returns true if all tests passed. |
| 35 |
*/ |
| 36 |
bool agn_filter_stream_unit_test(AgnUnitTest *test); |
| 37 |
|
| 38 |
#endif |