diff options
author | Eric Blossom | 2010-09-29 12:03:56 -0700 |
---|---|---|
committer | Eric Blossom | 2010-09-29 12:03:56 -0700 |
commit | df0cfb734e5acf698d286e03ba6abccc13d9c586 (patch) | |
tree | 8bd1790a5a39ed94376d47ba12ad886d108f4b6c /vrt/lib/header_utils.h | |
parent | f4e9ba2d94c9ae3340a79cce985560aeb48b526b (diff) | |
download | gnuradio-df0cfb734e5acf698d286e03ba6abccc13d9c586.tar.gz gnuradio-df0cfb734e5acf698d286e03ba6abccc13d9c586.tar.bz2 gnuradio-df0cfb734e5acf698d286e03ba6abccc13d9c586.zip |
Move more formatting code into header_utils
Diffstat (limited to 'vrt/lib/header_utils.h')
-rw-r--r-- | vrt/lib/header_utils.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/vrt/lib/header_utils.h b/vrt/lib/header_utils.h index df087eac8..0d006ffdc 100644 --- a/vrt/lib/header_utils.h +++ b/vrt/lib/header_utils.h @@ -22,17 +22,29 @@ #define INCLUDED_VRT_HEADER_UTILS_H #include <iosfwd> +#include <string> #include <stdint.h> +#include <vrt/bits.h> namespace vrt { namespace detail { + void wr_header(std::ostream &os, uint32_t x); void wr_name(std::ostream &os, const std::string &x); void wr_int_secs(std::ostream &os, uint32_t secs); void wr_uint32_hex(std::ostream &os, uint32_t x); void wr_uint32_dec(std::ostream &os, uint32_t x); - + void wr_hertz(std::ostream &os, vrt_hertz_t x); + void wr_dbm(std::ostream &os, vrt_db_t x); + void wr_db(std::ostream &os, vrt_db_t x); + void wr_temp(std::ostream &os, vrt_temp_t x); + void wr_angle(std::ostream &os, vrt_angle_t x); + void wr_distance(std::ostream &os, vrt_distance_t x); + void wr_velocity(std::ostream &os, vrt_velocity_t x); + void wr_payload_fmt(std::ostream &os, vrt_payload_fmt_t f); + void wr_formatted_gps(std::ostream &os, + const vrt_formatted_gps_t &x); }; }; |