blob: c17bba6a4bc162342fc24c6b961f707c260539aa (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file Env.h
*
* $Id$
*
* @author Nanbor Wang <nanbor@cs.wustl.edu>
*/
//=============================================================================
#ifndef _ACEXML_ENV_H_
#define _ACEXML_ENV_H_
#include /**/ "ace/pre.h"
#include "ACEXML/common/ACEXML_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ACEXML/common/XML_Macros.h"
#include "ACEXML/common/Exception.h"
/**
* @class ACEXML_Env Env.h "ACEXML/common/Env.h"
*
* @brief ACEXML_Env
*
* ACEXML_Env is modeled after CORBA_Environment class. It provides a place
* holder for callees to propagate exceptions back to callers. ACEXML does
* not support native exceptions at this moment.
*
* @sa ACEXML_Exception
*/
class ACEXML_Export ACEXML_Env
{
public:
/// Default constructor.
ACEXML_Env (void);
/// Copy constructor.
ACEXML_Env (const ACEXML_Env& ACEXML_TRY_ENV);
/// Assignment
ACEXML_Env& operator= (const ACEXML_Env& ACEXML_TRY_ENV);
/// Destructor.
~ACEXML_Env (void);
/// Return the contained exception.
ACEXML_Exception *exception (void) const;
/// Set the contained exception to @arg ex
void exception (ACEXML_Exception* ex);
/// Clear the exception and reset the evnrionment.
void clear (void);
private:
/// Place holder for exception (if one occurs.)
ACEXML_Exception *exception_;
};
#if defined (__ACEXML_INLINE__)
# include "ACEXML/common/Env.i"
#endif /* __ACEXML_INLINE__ */
#include /**/ "ace/post.h"
#endif /* _ACEXML_ENV_H_ */
|