summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-17 06:53:06 +0000
committeralex <alex@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-17 06:53:06 +0000
commitf015fbb6c1e7ed169b3eab9b13c02a174b0f6b00 (patch)
tree74d7b5e9c7c526a2106e7f4acaba4b20f58d5f9c
parentf0560055ebfe1b2ec94e002792a06e637b60f763 (diff)
downloadATCD-f015fbb6c1e7ed169b3eab9b13c02a174b0f6b00.tar.gz
Some more testing with Any in and out from Hash Table.
-rw-r--r--TAO/orbsvcs/tests/CosPropertyService/main.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/TAO/orbsvcs/tests/CosPropertyService/main.cpp b/TAO/orbsvcs/tests/CosPropertyService/main.cpp
index 7603f6213b6..ada09ed5bb6 100644
--- a/TAO/orbsvcs/tests/CosPropertyService/main.cpp
+++ b/TAO/orbsvcs/tests/CosPropertyService/main.cpp
@@ -19,7 +19,7 @@
#include "tao/any.h"
// Prototypes
-void printAny (CORBA::Any_var anyval);
+void printAny (CORBA::Any anyval);
int
main (int argc, char *argv [])
@@ -75,8 +75,12 @@ main (int argc, char *argv [])
ACE_DEBUG ( (LM_DEBUG, "\n Main : Number of props : %d \n", propSet.get_number_of_properties (TAO_TRY_ENV)) );
// Let us try to "get" back those values
- //CORBA::Any_ptr anyptr;
- //anyptr = propSet.get_property_value ("float_property", TAO_TRY_ENV);
+ CORBA::Any_ptr anyptr;
+ anyptr = propSet.get_property_value ("float_property", TAO_TRY_ENV);
+ if (anyptr->type () == CORBA::_tc_float)
+ {
+ ACE_DEBUG ( (LM_DEBUG, "Main : Float = %f \n", (*(CORBA::Float *)anyptr->value ())) );
+ }
//CORBA::Any_var anyvar (anyptr);
//printAny (anyvar.in ());
}
@@ -96,7 +100,7 @@ main (int argc, char *argv [])
}
void
-printAny (CORBA::Any_var anyval)
+printAny (CORBA::Any anyval)
{
/*
switch (anyval->type ())
@@ -116,12 +120,13 @@ printAny (CORBA::Any_var anyval)
default:
ACE_DEBUG ((LM_DEBUG, "I don't know this typecode"));
}
- */
-
- if (anyval->type () == CORBA::_tc_short)
+
+ /*
+ if (anyval.type () == CORBA::_tc_short)
{
- ACE_DEBUG ( (LM_DEBUG, "Main : Short = %d \n", ( *(short *)anyval->value ())) );
+ ACE_DEBUG ( (LM_DEBUG, "Main : Short = %d \n", ( *(short *)anyval.value ())) );
}
+ */
}