diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-16 00:30:16 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-16 00:30:16 +0000 |
commit | eb149e5ee8c5ab50b523718cd1d64b0bd362eb8d (patch) | |
tree | 1212211db11a5219bd6b8b939280f9cfed404fb5 /TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp | |
parent | 063d1234fff71d1a0642c01d2e51ce8feff6dd0e (diff) | |
download | ATCD-eb149e5ee8c5ab50b523718cd1d64b0bd362eb8d.tar.gz |
*** empty log message ***
Diffstat (limited to 'TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp')
-rw-r--r-- | TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp b/TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp new file mode 100644 index 00000000000..e6883abba0c --- /dev/null +++ b/TAO/performance-tests/Cubit/CORBAplus/MT_Cubit/server/cubit_i.cpp @@ -0,0 +1,82 @@ +// $Id$ + +// @(#)cubit_i.cpp 05/14/97 +// Copyright 1994-1995 by Sun Microsystems Inc. +// All Rights Reserved +// +// TEST: hand-written Cubit Implementation +// +// Modified version of Cubit Example written by Sun Microsystems Inc. +// Modified by: Brian Mendel + +#include "pbroker/corba/orb.h" +#include "pbroker/corba/environ.h" +#include "cubit_i.h" + +ACE_RCSID(server, cubit_i, "$Id$") + +Cubit_i::Cubit_i (const char *obj_name) +{ +} + +Cubit_i::~Cubit_i (void) +{ +} + +CORBA::Octet +Cubit_i::cube_octet (CORBA::Octet o) +{ + return (CORBA::Octet) (o * o * o); +} + +CORBA::Short +Cubit_i::cube_short (CORBA::Short s) +{ + return (CORBA::Short) (s * s * s); +} + +CORBA::Long +Cubit_i::cube_long (CORBA::Long l) +{ + return (CORBA::Long) (l * l * l); +} + +Cubit::Many +Cubit_i::cube_struct (const Cubit::Many &values) +{ + Cubit::Many out_values; + out_values.o = values.o * values.o * values.o; + out_values.s = values.s * values.s * values.s; + out_values.l = values.l * values.l * values.l; + + return out_values; +} + +/*Cubit_oneof * +Cubit_i::cube_union (Cubit_oneof &values, + CORBA::Environment &env) +{ + ACE_UNUSED_ARG (env); + switch (values._disc) + { + case e_0th: + values.o = (CORBA::Octet) (values.o * values.o * values.o); + break; + case e_1st: + values.s = (CORBA::Short) (values.s * values.s * values.s); + break; + case e_2nd: + values.l = values.l * values.l * values.l; + break; + case e_3rd: + default: + values.cm.o = (CORBA::Octet) (values.cm.o * values.cm.o * values.cm.o); + values.cm.s = (CORBA::Short) (values.cm.s * values.cm.s * values.cm.s); + values.cm.l = values.cm.l * values.cm.l * values.cm.l; + } + return &values; +} */ + +void Cubit_i::please_exit (void) +{ +} |