GNU Radio 3.6.4.2 C++ API
|
00001 /* 00002 * Copyright 2012-2013 Free Software Foundation, Inc. 00003 * 00004 * This file is part of GNU Radio 00005 * 00006 * GNU Radio is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 3, or (at your option) 00009 * any later version. 00010 * 00011 * GNU Radio is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with GNU Radio; see the file COPYING. If not, write to 00018 * the Free Software Foundation, Inc., 51 Franklin Street, 00019 * Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef INCLUDED_GRNURADIO_TYPES_H 00023 #define INCLUDED_GRNURADIO_TYPES_H 00024 00025 // this section is to satisfy swig includes for gras.i 00026 // since gras.i includes gr_types.h, we only have to edit this file 00027 #include <gras/element.hpp> 00028 #include <gras/block.hpp> 00029 #include <gras/top_block.hpp> 00030 #include <gras/hier_block.hpp> 00031 00032 // and gnuradio apparently needs its own typedefs for stdint... 00033 #ifdef __cplusplus 00034 00035 #include <boost/cstdint.hpp> 00036 typedef boost::int16_t gr_int16; 00037 typedef boost::int32_t gr_int32; 00038 typedef boost::int64_t gr_int64; 00039 typedef boost::uint16_t gr_uint16; 00040 typedef boost::uint32_t gr_uint32; 00041 typedef boost::uint64_t gr_uint64; 00042 00043 typedef std::vector<int> gr_vector_int; 00044 typedef std::vector<unsigned int> gr_vector_uint; 00045 typedef std::vector<float> gr_vector_float; 00046 typedef std::vector<double> gr_vector_double; 00047 typedef std::vector<void *> gr_vector_void_star; 00048 typedef std::vector<const void *> gr_vector_const_void_star; 00049 00050 #include <complex> 00051 typedef std::complex<float> gr_complex; 00052 typedef std::complex<double> gr_complexd; 00053 00054 #endif 00055 00056 #endif /* INCLUDED_GRNURADIO_TYPES_H */