/tags/rel-0-1-0/FreeSpeech/data-flow/include/OutputStream.h
# · C++ Header · 58 lines · 18 code · 14 blank · 26 comment · 0 complexity · 6c99ee34ec2bf07c0e2c3dd22be58c6e MD5 · raw file
- // Copyright (C) 1999 Jean-Marc Valin
- //
- // This program is free software; you can redistribute it and/or modify
- // it under the terms of the GNU General Public License as published by
- // the Free Software Foundation; either version 2, or (at your option)
- // any later version.
- //
- // This program is distributed in the hope that it will be useful, but
- // WITHOUT ANY WARRANTY; without even the implied warranty of
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- // General Public License for more details.
- //
- // You should have received a copy of the GNU General Public License
- // along with this file. If not, write to the Free Software Foundation,
- // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- #ifndef OUTPUTSTREAM_H
- #define OUTPUTSTREAM_H
- #include "Node.h"
- #include "ObjectRef.h"
- class OutputStream : public Node {
- protected:
-
- /**The ID of the 'output' output*/
- int outputID;
- /**The ID of the 'input' input*/
- int inputID;
- /**Reference to the opened stream*/
- ObjectRef openedFile;
- public:
- /**Constructor, takes the name of the node and a set of parameters*/
- OutputStream(string nodeName, ParameterSet params);
- /**Class specific initialization routine.
- Each class will call its subclass specificInitialize() method*/
- virtual void specificInitialize();
- /**Class reset routine.
- Each class will call its superclass reset() method*/
- virtual void reset();
- /**Ask for the node's output which ID (number) is output_id
- and for the 'count' iteration */
- virtual ObjectRef getOutput(int output_id, int count);
- protected:
- /**Default constructor, should not be used*/
- OutputStream() {throw new GeneralException("OutputStream copy constructor should not be called",__FILE__,__LINE__);}
- };
- #endif