blob: 148c44a6c659b2d0a840f5b663fca42a5b1368e8 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
//=============================================================================
/**
* @file alt_mapping_i.cpp
*
* $Id$
*
* @author Jeff Parsons
*/
//=============================================================================
#include "alt_mapping_i.h"
#include "tao/debug.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_wchar.h"
#include "ace/OS_NS_string.h"
Alt_Mapping_i::Alt_Mapping_i (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}
Alt_Mapping_i::~Alt_Mapping_i (void)
{
}
// test unbounded strings. For return and out types, we return duplicates of
// the in string. For the inout, we append the same string to itself and send
// it back
std::string
Alt_Mapping_i::test_unbounded_string (const std::string s1,
std::string &s2,
std::string &s3)
{
std::string retstr = s1;
s3 = s1;
s2 = s1 + s1;
return retstr;
}
// test for struct sequences
Alt_Mapping::StructSeq
Alt_Mapping_i::test_struct_sequence (
const Alt_Mapping::StructSeq & s1,
Alt_Mapping::StructSeq & s2,
Alt_Mapping::StructSeq & s3)
{
// We copy the "in" sequences into all the inout, out and return sequences.
// now copy all elements of s1 into the others using the assignment operator
s2 = s1;
s3 = s1;
return s1;
}
void
Alt_Mapping_i::shutdown (void)
{
this->orb_->shutdown ();
}
|