Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / PluggableTopology / Test_Saver.cpp
blobbf53c0c9292651cadbe25e07c3adc61a6770bb31
1 #include "Test_Saver.h"
3 #include <ace/streams.h>
4 #include <ace/OS_NS_stdio.h>
6 Test_Saver::Test_Saver()
10 bool
11 Test_Saver::begin_object(CORBA::Long id,
12 const ACE_CString &type,
13 const TAO_Notify::NVPList& attrs,
14 bool changed)
16 ACE_OS::fprintf (stdout, "Test_Saver::begin_object type=\"%s\""
17 " id=%d changed=\"%d\"", type.c_str(), id, changed);
18 for (size_t idx = 0; idx < attrs.size(); idx++)
20 ACE_OS::fprintf (stdout, " %s=\"%s\"", attrs[idx].name.c_str(),
21 attrs[idx].value.c_str());
23 ACE_OS::fprintf (stdout, "\n");
24 return true;
27 void
28 Test_Saver::end_object (CORBA::Long id,
29 const ACE_CString &type)
31 ACE_OS::fprintf (stdout, "Test_Saver::end_object type=\"%s\" id=%d\n",
32 type.c_str(), id);