blob: 2817d2bb32a9ce5787c290f4845c157b27c83973 (
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
|
/* -*- C++ -*- */
// $Id$
//
// ============================================================================
//
// = DESCRIPTION
// Simple C++ data to show how custom marshalling can be used for
// non-IDL types.
//
// ============================================================================
#if !defined (ECT_DATA_H)
#define ECT_DATA_H
#include "ace/Map_Manager.h"
#include "dataC.h"
struct ECT_Data
{
typedef ACE_Map_Manager<CORBA::ULong,CORBA::Double,ACE_Null_Mutex> Inventory;
// Yes, an STL type could be used here and yes, we could write
// generic algorithms for marshalling and demarshalling using
// iterators.
// But ACE (and TAO) must be ported to platforms whose C++ compilers
// will crash and burn when faced with an STL construct.
CORBA::String_var description;
Inventory inventory;
};
extern TAO_OutputCDR&
operator<< (TAO_OutputCDR& cdr, ECT_Data& x);
extern TAO_InputCDR&
operator>> (TAO_InputCDR& cdr, ECT_Data& x);
#endif /* ECT_SUPPLIER_H */
|