summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1254_Regression/BlobServer.cpp
blob: 3fbc4fdaa62af8d4eb9ddba5eaa5d60b39591ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// $Id$
//
#include "BlobServer.h"

ACE_RCSID(BlobServerImpl, BlobServerImpl, "$Id$")

BlobServerImpl::BlobServerImpl (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb))
{
}

/// Implement the BlobServer interface
void
BlobServerImpl::test(
            BlobType1& blob1,
            BlobType2& blob2
      )
      ACE_THROW_SPEC ((
        ::CORBA::SystemException
      ))
{
    blob1.length(10);
    for(int i = 0; i < 10; i++)
    {
        blob1[i] = 'A' + i;
    }

    blob2.length(10);
    for(int i = 0; i < 10; i++)
    {
        blob2[i] = 'A' + i;
    }
}

void
BlobServerImpl::shutdown (void)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  this->orb_->shutdown (0);
}