Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

gr_io_signature.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2004 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 #ifndef INCLUDED_IO_SIGNATURE_H
00024 #define INCLUDED_IO_SIGNATURE_H
00025 
00026 #include <gr_runtime.h>
00027 
00035 class gr_io_signature {
00036  public:
00037 
00038   static const int IO_INFINITE = -1;
00039     
00040   ~gr_io_signature ();
00041     
00042   int min_streams () const { return d_min_streams; }
00043   int max_streams () const { return d_max_streams; }
00044   size_t sizeof_stream_item (int index) const { return d_sizeof_stream_item; }
00045 
00046   // ----------------------------------------------------------------------------
00047 
00048  private:
00049   
00050   int           d_min_streams;
00051   int           d_max_streams;
00052   size_t        d_sizeof_stream_item;
00053 
00054   gr_io_signature (int min_streams, int max_streams, size_t sizeof_stream_item);
00055 
00056   friend gr_io_signature_sptr gr_make_io_signature (int min_streams,
00057                                                    int max_streams,
00058                                                    size_t sizeof_stream_item);
00059 };
00060 
00061 gr_io_signature_sptr
00062 gr_make_io_signature (int min_streams, int max_streams, size_t sizeof_stream_item);
00063 
00064 
00065 #endif /* INCLUDED_IO_SIGNATURE_H */

Generated on Sat Jul 8 17:04:51 2006 for GNU Radio 2.x by  doxygen 1.4.1