3 // ============================================================================
6 // Simple C++ data to show how custom marshalling can be used for
9 // ============================================================================
14 #include "ace/Map_Manager.h"
15 #include "ace/Null_Mutex.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 // Yes, an STL type could be used here and yes, we could write
26 // generic algorithms for marshalling and demarshalling using
28 // But ACE (and TAO) must be ported to platforms whose C++ compilers
29 // will crash and burn when faced with an STL construct.
30 typedef ACE_Map_Manager
<CORBA::ULong
,CORBA::Double
,ACE_Null_Mutex
> Inventory
;
32 CORBA::String_var description
;
37 operator<< (TAO_OutputCDR
& cdr
, ECM_Data
& x
);
40 operator>> (TAO_InputCDR
& cdr
, ECM_Data
& x
);
42 #endif /* ECM_SUPPLIER_H */