eccLib 1.1.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
reader.h File Reference

header for the reader module More...

#include "common.h"
#include <Python.h>
#include <stdbool.h>
Include dependency graph for reader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  reader
 Reader base struct. More...
 
struct  file
 File base struct. More...
 
struct  line_out
 A simple that hold a string, and potentially it's Python parent object. More...
 

Macros

#define BUFFSIZE   (1024)
 how big should the line buffer be?
 

Functions

void free_reader (struct reader *self)
 Free the reader object.
 
PyObject * file_enter (struct file *self, PyObject *args)
 enter method for file objects
 
PyObject * file_exit (struct file *self, PyObject *args, PyObject *kwds)
 exit method for file objects
 
bool initialize_reader (const struct file *self, struct reader *reader)
 Initialize the reader object based on the file object.
 
line_out next_line (struct reader *restrict self, bool(*valid)(const char *, size_t))
 Fetches the next line from the reader object.
 

Detailed Description

header for the reader module

Macro Definition Documentation

◆ BUFFSIZE

#define BUFFSIZE   (1024)

how big should the line buffer be?