X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=bindings%2Fcxx%2Fclasses.cpp;h=f9f79273495026f52c61989b74fca89d1b99e50a;hb=6c6dd7328a83f7beb7280d57cc5e255294aba2fc;hp=12ab2c294abb6d62ae31acdfb74c60b5ead2e58b;hpb=a9ed2eb06953eb34fb019ae9a80e213c75790fab;p=libsigrok.git diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp index 12ab2c29..f9f79273 100644 --- a/bindings/cxx/classes.cpp +++ b/bindings/cxx/classes.cpp @@ -32,6 +32,8 @@ namespace sigrok { +using namespace std; + /** Helper function to translate C errors to C++ exceptions. */ static void check(int result) { @@ -1661,6 +1663,11 @@ Output::~Output() check(sr_output_free(_structure)); } +shared_ptr Output::format() +{ + return _format; +} + string Output::receive(shared_ptr packet) { GString *out;