aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-04-01 13:11:23 +0200
committerMartin Braun <martin.braun@ettus.com>2014-04-10 21:25:53 +0200
commit1f61316536057c4326964c599c90b6d1281c6e2b (patch)
tree1c6db3ca7bb7c2537842e179043f15e1ba1a9e33 /host/include
parentddb35a65ddcca7aa7a8c03d4185357fea2bf47c0 (diff)
downloaduhd-1f61316536057c4326964c599c90b6d1281c6e2b.tar.gz
uhd-1f61316536057c4326964c599c90b6d1281c6e2b.tar.bz2
uhd-1f61316536057c4326964c599c90b6d1281c6e2b.zip
uhd: Added pp routines for error codes and rx metadata
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/types/metadata.hpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/host/include/uhd/types/metadata.hpp b/host/include/uhd/types/metadata.hpp
index 6a79720d0..51a2b7c43 100644
--- a/host/include/uhd/types/metadata.hpp
+++ b/host/include/uhd/types/metadata.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2012 Ettus Research LLC
+// Copyright 2010-2012,2014 Ettus Research LLC
//
// 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
@@ -117,6 +117,20 @@ namespace uhd{
//! Out of sequence. The transport has either dropped a packet or received data out of order.
bool out_of_sequence;
+
+ /*!
+ * Convert a rx_metadata_t into a pretty print string.
+ *
+ * \param compact Set to false for a more verbose output.
+ * \return a printable string representing the metadata.
+ */
+ std::string to_pp_string(bool compact=true) const;
+
+ /*!
+ * Similar to C's strerror() function, creates a std::string describing the error code.
+ * \return a printable string representing the error.
+ */
+ std::string strerror(void) const;
};
/*!