summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/PluggableTopology/Test_Saver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/PluggableTopology/Test_Saver.cpp')
-rw-r--r--TAO/orbsvcs/tests/Notify/PluggableTopology/Test_Saver.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Notify/PluggableTopology/Test_Saver.cpp b/TAO/orbsvcs/tests/Notify/PluggableTopology/Test_Saver.cpp
new file mode 100644
index 00000000000..9e23199a111
--- /dev/null
+++ b/TAO/orbsvcs/tests/Notify/PluggableTopology/Test_Saver.cpp
@@ -0,0 +1,36 @@
+// $Id$
+
+#include "Test_Saver.h"
+
+#include <ace/streams.h>
+#include <ace/OS_NS_stdio.h>
+
+Test_Saver::Test_Saver()
+{
+}
+
+bool
+Test_Saver::begin_object(CORBA::Long id,
+ const ACE_CString &type,
+ const TAO_Notify::NVPList& attrs,
+ bool changed)
+{
+ ACE_OS::fprintf (stdout, "Test_Saver::begin_object type=\"%s\""
+ " id=%d changed=\"%d\"", type.c_str(), id, changed);
+ for (size_t idx = 0; idx < attrs.size(); idx++)
+ {
+ ACE_OS::fprintf (stdout, " %s=\"%s\"", attrs[idx].name.c_str(),
+ attrs[idx].value.c_str());
+ }
+ ACE_OS::fprintf (stdout, "\n");
+ return true;
+}
+
+void
+Test_Saver::end_object (CORBA::Long id,
+ const ACE_CString &type)
+{
+ ACE_OS::fprintf (stdout, "Test_Saver::end_object type=\"%s\" id=%d\n",
+ type.c_str(), id);
+}
+