diff options
Diffstat (limited to 'TAO/tests/Smart_Proxies/Collocation/Diamond_i.cpp')
-rw-r--r-- | TAO/tests/Smart_Proxies/Collocation/Diamond_i.cpp | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/TAO/tests/Smart_Proxies/Collocation/Diamond_i.cpp b/TAO/tests/Smart_Proxies/Collocation/Diamond_i.cpp new file mode 100644 index 00000000000..0200835d0a8 --- /dev/null +++ b/TAO/tests/Smart_Proxies/Collocation/Diamond_i.cpp @@ -0,0 +1,104 @@ +// $Id$ + +#include "Diamond_i.h" + +Top_i::Top_i () +{ + // no-op. +} + +Top_i::~Top_i () +{ + // No-op. +} + +char * +Top_i::shape (void) +{ + return CORBA::string_dup ("a point."); +} + +Left_i::Left_i () +{ + // No-op. +} + +Left_i::~Left_i () +{ + // No-op. +} + +char * +Left_i::shape (void) +{ + return CORBA::string_dup ("the left line"); +} + +char * +Left_i::color (void) +{ + return CORBA::string_dup ("black"); +} + +Right_i::Right_i () +{ + // no-op. +} + +Right_i::~Right_i () +{ + // no-op. +} + +char * +Right_i::shape (void) +{ + return CORBA::string_dup ("the right line"); +} + +char * +Right_i::color (void) +{ + return CORBA::string_dup ("red"); + // +} + +CORBA::Long +Right_i::width (void) +{ + return 0; +} + +Buttom_i::Buttom_i () +{ + // no-op. +} + +Buttom_i::~Buttom_i () +{ + // no-op. +} + +char * +Buttom_i::shape (void) +{ + return CORBA::string_dup ("a diamond"); +} + +char * +Buttom_i::color (void) +{ + return CORBA::string_dup ("translucent"); +} + +CORBA::Long +Buttom_i::width (void) +{ + return 100; +} + +char * +Buttom_i::name (void) +{ + return CORBA::string_dup ("Jubilee"); +} |