diff options
Diffstat (limited to 'TAO/DevGuideExamples/ValueTypes/Bank/client.cpp')
-rw-r--r-- | TAO/DevGuideExamples/ValueTypes/Bank/client.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/TAO/DevGuideExamples/ValueTypes/Bank/client.cpp b/TAO/DevGuideExamples/ValueTypes/Bank/client.cpp index b4f91848e8b..22345636352 100644 --- a/TAO/DevGuideExamples/ValueTypes/Bank/client.cpp +++ b/TAO/DevGuideExamples/ValueTypes/Bank/client.cpp @@ -49,6 +49,21 @@ public: name(n); balance(bal); } + + ::CORBA::ValueBase *_copy_value () + { + ::CORBA::ValueBase *ret_val = 0; + ACE_NEW_THROW_EX ( + ret_val, + Person_i ( + name (), + balance () + ), + ::CORBA::NO_MEMORY () + ); + return ret_val; + } + private: void debit(CORBA::Long) { |