summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/common.cpp')
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/common.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/common.cpp b/TAO/orbsvcs/tests/Notify/lib/common.cpp
deleted file mode 100644
index ff6f0bc6296..00000000000
--- a/TAO/orbsvcs/tests/Notify/lib/common.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-// $Id$
-
-#include "common.h"
-
-#include "orbsvcs/CosNotifyCommC.h"
-#include "orbsvcs/CosNamingC.h"
-#include "ace/OS_NS_stdio.h"
-#include "ace/OS_NS_string.h"
-
-
-const char*
-Any_String (const CORBA::Any& any)
-{
- static char out[256] = "";
- CORBA::Short s;
- CORBA::UShort us;
- CORBA::Long l;
- CORBA::ULong ul;
- CORBA::ULongLong ull;
- const char* str;
-
- if (any >>= s)
- {
- ACE_OS::sprintf (out, ACE_INT16_FORMAT_SPECIFIER, s);
- }
- else if (any >>= us)
- {
- ACE_OS::sprintf (out, ACE_UINT16_FORMAT_SPECIFIER, us);
- }
- else if (any >>= l)
- {
- ACE_OS::sprintf (out, ACE_INT32_FORMAT_SPECIFIER, l);
- }
- else if (any >>= ul)
- {
- ACE_OS::sprintf (out, ACE_UINT32_FORMAT_SPECIFIER, ul);
- }
- else if (any >>= str)
- {
- ACE_OS::strcpy (out, str);
- }
- else if (any >>= ull)
- {
-#if defined (ACE_LACKS_LONGLONG_T)
- ACE_OS::strcpy (out, ull.as_string (out));
-#else
- ACE_OS::sprintf (out, ACE_UINT64_FORMAT_SPECIFIER, ull);
-#endif /* ACE_LACKS_LONGLONG_T */
- }
- else
- {
- ACE_OS::strcpy (out, "Unsupported Any Type");
- }
-
- return out;
-}