summaryrefslogtreecommitdiff
path: root/TAO/tests/OctetSeq/test_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/OctetSeq/test_i.cpp')
-rw-r--r--TAO/tests/OctetSeq/test_i.cpp67
1 files changed, 0 insertions, 67 deletions
diff --git a/TAO/tests/OctetSeq/test_i.cpp b/TAO/tests/OctetSeq/test_i.cpp
deleted file mode 100644
index dd661e98ebd..00000000000
--- a/TAO/tests/OctetSeq/test_i.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// $Id$
-
-#include "test_i.h"
-
-#if !defined(__ACE_INLINE__)
-#include "test_i.i"
-#endif /* __ACE_INLINE__ */
-
-ACE_RCSID(OctetSeq, test_i, "$Id$")
-
-void
-Database_i::set (Test::Index i,
- const Test::OctetSeq& seq,
- CORBA::Environment &ACE_TRY_ENV)
- ACE_THROW_SPEC ((Test::OutOfRange))
-{
- if (i >= this->max_range_)
- ACE_THROW (Test::OutOfRange (0, this->max_range_));
-
- CORBA::ULong len = seq.length ();
- // CORBA::ULong max = seq.maximum ();
- ACE_Message_Block *mb = seq.mb ();
- if (mb == 0)
- {
- this->elements_[i] = seq;
- }
- else
- {
- this->elements_[i].replace (len, seq.mb ());
- }
-}
-
-Test::OctetSeq*
-Database_i::get (Test::Index i,
- CORBA::Environment &ACE_TRY_ENV)
- ACE_THROW_SPEC ((CORBA::SystemException,Test::OutOfRange))
-{
- if (i >= this->max_range_)
- ACE_THROW_RETURN (Test::OutOfRange (0, this->max_range_), 0);
-
- Test::OctetSeq* copy;
- ACE_NEW_THROW_EX (copy,
- Test::OctetSeq (this->elements_[i]),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
- return copy;
-}
-
-CORBA::ULong
-Database_i::get_crc (Test::Index i,
- CORBA::Environment &ACE_TRY_ENV)
- ACE_THROW_SPEC ((CORBA::SystemException,Test::OutOfRange))
-{
- if (i >= this->max_range_)
- ACE_THROW_RETURN (Test::OutOfRange (0, this->max_range_), 0);
-
- return ACE::crc32 (ACE_reinterpret_cast (const char*,
- this->elements_[i].get_buffer ()),
- this->elements_[i].length ());
-}
-
-void
-Database_i::shutdown (CORBA::Environment&)
- ACE_THROW_SPEC (())
-{
- this->orb_->shutdown ();
-}