diff options
Diffstat (limited to 'tests/cxx/tree/binary/polymorphic/driver.cxx')
-rw-r--r-- | tests/cxx/tree/binary/polymorphic/driver.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/cxx/tree/binary/polymorphic/driver.cxx b/tests/cxx/tree/binary/polymorphic/driver.cxx index 3c3e057..1b537d1 100644 --- a/tests/cxx/tree/binary/polymorphic/driver.cxx +++ b/tests/cxx/tree/binary/polymorphic/driver.cxx @@ -11,6 +11,8 @@ #include <iostream> #include <typeinfo> +#include <ace/Log_Msg.h> // ACE_HEX_DUMP + #include "test.hxx" using namespace std; @@ -35,6 +37,19 @@ main (int argc, char* argv[]) xml_schema::ostream<ACE_OutputCDR> ocdr (ace_ocdr); ocdr << *r; + /* + // Print the binary representation. + // + cerr << "binary representation size: " << ace_ocdr.total_length () << endl; + + for (const ACE_Message_Block* mb = ace_ocdr.begin (); + mb != 0; + mb = mb->cont ()) + { + ACE_HEX_DUMP ((LM_DEBUG, mb->rd_ptr (), mb->length ())); + } + */ + // Load from a CDR stream. // ACE_InputCDR ace_icdr (ace_ocdr); |