blob: 0a1bda88ebbb5c13120ce3f08c00e4ff3775a4c9 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
// -*- C++ -*-
//=============================================================================
/**
* @file ExceptionHolder_i.h
*
* @author Johnny Willemsen <jwillemsen@remedy.nl>
*/
//=============================================================================
#ifndef TAO_MESSAGING_EXCEPTIONHOLDER_I_H
#define TAO_MESSAGING_EXCEPTIONHOLDER_I_H
#include /**/ "ace/pre.h"
#include "tao/Messaging/messaging_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/orbconf.h"
#include "tao/Messaging/ExceptionHolderA.h"
#include "tao/Messaging/ExceptionHolderC.h"
#include "tao/Valuetype/ValueFactory.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace Dynamic
{
class ExceptionList;
}
namespace Messaging
{
class ReplyHandler;
}
namespace TAO
{
struct Exception_Data;
class TAO_Messaging_Export ExceptionHolder
: public virtual ::OBV_Messaging::ExceptionHolder,
public virtual ::CORBA::DefaultValueRefCountBase
{
public:
ExceptionHolder ();
ExceptionHolder (
::CORBA::Boolean is_system_exception,
::CORBA::Boolean byte_order,
const ::CORBA::OctetSeq &marshaled_exception,
::TAO::Exception_Data* data,
::CORBA::ULong exceptions_count,
ACE_Char_Codeset_Translator *char_translator,
ACE_WChar_Codeset_Translator *wchar_translator);
void set_exception_data (::TAO::Exception_Data* data,
::CORBA::ULong exceptions_count);
virtual void raise_exception ();
virtual void raise_exception_with_list (
const ::Dynamic::ExceptionList & exc_list);
virtual CORBA::ValueBase* _copy_value ();
protected:
virtual ~ExceptionHolder ();
private:
TAO::Exception_Data* data_;
CORBA::ULong count_;
ACE_Char_Codeset_Translator *char_translator_;
ACE_WChar_Codeset_Translator *wchar_translator_;
};
/**
* @class ExceptionHolderFactory
*
* @brief OBV factory implementation.
*
* Factory for ExceptionHolder
*/
class TAO_Messaging_Export ExceptionHolderFactory :
public virtual CORBA::ValueFactoryBase
{
public:
virtual CORBA::ValueBase * create_for_unmarshal ();
};
}
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_MESSAGING_EXCEPTIONHOLDER_I_H */
|