diff options
Diffstat (limited to 'vrt/lib/header_utils.cc')
-rw-r--r-- | vrt/lib/header_utils.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vrt/lib/header_utils.cc b/vrt/lib/header_utils.cc index 3c97df861..1cd15dedf 100644 --- a/vrt/lib/header_utils.cc +++ b/vrt/lib/header_utils.cc @@ -48,5 +48,22 @@ namespace vrt os << std::endl; } + void wr_name(std::ostream &os, const std::string &x) + { + os << format(" %-21s ") % (x + ":"); + } + + void wr_uint32_hex(std::ostream &os, uint32_t x) + { + os << format("%#10x") % x; + os << std::endl; + } + + void wr_uint32_dec(std::ostream &os, uint32_t x) + { + os << format("%12d") % x; + os << std::endl; + } + }; }; |