blob: 4072da0706f57db22dad768e30e26da989b339ca (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file TypeCode_Default_Case.h
*
* $Id$
*
* Header file for @c TAO::TypeCode::Default_Case type.
*
* @author Ossama Othman
*/
//=============================================================================
#ifndef TAO_TYPECODE_DEFAULT_CASE_H
#define TAO_TYPECODE_DEFAULT_CASE_H
#include /**/ "ace/pre.h"
#include "ace/config.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/TypeCode_Case.h"
namespace TAO
{
namespace TypeCode
{
/**
* @class Default_Case
*
* @brief Representation of an OMG IDL defined @c union @c default
* @c case.
*
*/
template <typename STRING_TYPE>
class Default_Case : public Case<STRING_TYPE>
{
public:
/// Constructor.
Default_Case (char const * member_name,
CORBA::TypeCode_ptr * member_type);
/**
* @name @c TAO::TypeCode::Case Methods
*
* Methods required by the @c TAO::TypeCode::Case abstract base
* class.
*
* @see @c TAO::TypeCode::Case
*/
//@{
virtual CORBA::Any * label (ACE_ENV_SINGLE_ARG_DECL) const;
virtual bool marshal_label (TAO_OutputCDR & cdr) const;
virtual bool equal_label (CORBA::ULong index,
CORBA::TypeCode_ptr tc
ACE_ENV_ARG_DECL) const;
//@}
};
} // End namespace TypeCode
} // End namespace TAO
#ifdef __ACE_INLINE__
# include "tao/TypeCode_Default_Case.inl"
#endif /* __ACE_INLINE__ */
#ifdef ACE_TEMPLATES_REQUIRE_SOURCE
# include "tao/TypeCode_Default_Case.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#ifdef ACE_TEMPLATES_REQUIRE_PRAGMA
# pragma implementation ("TypeCode_Default_Case.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
#endif /* TAO_TYPECODE_DEFAULT_CASE_H */
|