diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-05-21 19:18:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-05-21 19:18:52 +0200 |
commit | 9a764d4ed5606c5f171ae05a7409128a88184b11 (patch) | |
tree | 8f1c862354e5c6f112e7e52e3641ad87e4d276df /tests/cxx/tree | |
parent | efb2476d01b2bcc62569c8748327754a836195c3 (diff) |
Pool polymorphic type-id strings in binary representations
Add support for an implicit string pool in istream and ostream
templates. Use this support to pool type namespace and name
when dealing with polymorphic types.
Diffstat (limited to 'tests/cxx/tree')
-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); |