blob: 56d0cb2b1b41c504538f6995ca3664d3d1f50316 (
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
64
65
66
67
68
69
70
71
72
73
|
// -*- C++ -*-
//=============================================================================
/**
* @file Any_Unknown_IDL_Type.h
*
* $Id$
*
* @authors Carlos O'Ryan and Jeff Parsons
*/
//=============================================================================
#ifndef TAO_ANY_UNKNOWN_IDL_TYPE_H
#define TAO_ANY_UNKNOWN_IDL_TYPE_H
#include /**/ "ace/pre.h"
#include "tao/AnyTypeCode/Any_Impl.h"
#include "tao/CDR.h"
#include "ace/Auto_Ptr.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class ACE_Char_Codeset_Translator;
class ACE_WChar_Codeset_Translator;
namespace TAO
{
/**
* @class Unknown_IDL_Type
*
* @brief CDR-based Any impl class.
*
* Used when demarshaling an Any, and with DII/DSI, and Dynamic Anys.
*/
class TAO_AnyTypeCode_Export Unknown_IDL_Type : public Any_Impl
{
public:
Unknown_IDL_Type (CORBA::TypeCode_ptr,
TAO_InputCDR &cdr);
Unknown_IDL_Type (CORBA::TypeCode_ptr);
virtual ~Unknown_IDL_Type (void);
virtual CORBA::Boolean marshal_value (TAO_OutputCDR &);
virtual const void *value (void) const;
virtual void free_value (void);
virtual TAO_InputCDR &_tao_get_cdr (void);
virtual int _tao_byte_order (void) const;
virtual void _tao_decode (TAO_InputCDR &
ACE_ENV_ARG_DECL);
virtual CORBA::Boolean to_object (CORBA::Object_ptr &) const;
virtual CORBA::Boolean to_value (CORBA::ValueBase *&) const;
virtual CORBA::Boolean to_abstract_base (CORBA::AbstractBase_ptr &) const;
private:
// We make the lock global, so that it won't be deleted when shared.
// For instance, see Any_Basic_Impl::extract() which copies the insides
// from an Unknown_IDL_Type to an Any_Basic_Impl.
static ACE_Auto_Ptr<ACE_Lock> lock_;
mutable TAO_InputCDR cdr_;
};
}
#include /**/ "ace/post.h"
#endif /* TAO_ANY_UNKNOWN_IDL_TYPE_H */
|