useDynLib(Streamer, .registration=TRUE)

import(methods)

importFrom(BiocGenerics, lapply, sapply)

importClassesFrom(BiocGenerics, connection)

## only exported on unix
## importFrom(parallel, mccollect, mcparallel)

importClassesFrom(graph, graphNEL)

importFrom(graph, ftM2graphNEL)

importMethodsFrom(graph, numNodes, numEdges, nodes, edges, inEdges)

importFrom(graphics, plot)

importFrom(RBGL, tsort)

exportPattern("^[^\\.]")

S3method(close, ConnectionProducer)
S3method(plot, DAGParam)
S3method(plot, DAGTeam)

exportMethods(lapply, sapply)

exportClasses(
    Streamer,
    Stream,
    Producer,
        RawInput, Seq,
        FunctionProducer,
        ConnectionProducer,
    Consumer,
        RawToChar, Rev, Downsample, Reducer,
        FunctionConsumer,
        Team, ParallelParam, MulticoreParam,
        DAGTeam, DAGParam)