summaryrefslogtreecommitdiff
path: root/TAO/tao/TimeBaseC.h
blob: 4f21b84929a9a1230c4de0ec012b92aa391f3164 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/* -*- C++ -*- */
//
// $Id$
//
// ================================================================
//
// = LIBRARY
//   TAO
//
// = FILENAME
//   TimeBaseC.h
//
// = DESCRIPTION
//   Generated from TimeBase.pidl, the common time representation for
//   Time in CORBA.
//   The code was generated by the IDL compiler and then hand-crafted
//   to reduce the includes interdependencies.
//
// ================================================================

#ifndef TAO_IDL_TIMEBASEC_H
#define TAO_IDL_TIMEBASEC_H

#include "tao/Any.h"
#include "tao/CDR.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */


#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
#endif
#define TAO_EXPORT_MACRO TAO_Export
#if defined(_MSC_VER)
#pragma warning(disable:4250)
#endif /* _MSC_VER */

TAO_NAMESPACE  TimeBase
{
  typedef CORBA::ULongLong TimeT;
  typedef CORBA::ULongLong_out TimeT_out;
    TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_TimeT;

  typedef TimeT InaccuracyT;
  typedef TimeT_out InaccuracyT_out;
    TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_InaccuracyT;

  typedef CORBA::Short TdfT;
  typedef CORBA::Short_out TdfT_out;
    TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_TdfT;

  struct TAO_Export UtcT
  {
    TimeT time;
    CORBA::ULong inacclo;
    CORBA::UShort inacchi;
    TdfT tdf;
  };

  class TAO_Export UtcT_var
  {
  public:
    UtcT_var (void); // default constructor
    UtcT_var (UtcT *);
    UtcT_var (const UtcT_var &); // copy constructor
    ~UtcT_var (void); // destructor

    UtcT_var &operator= (UtcT *);
    UtcT_var &operator= (const UtcT_var &);
    UtcT *operator-> (void);
    const UtcT *operator-> (void) const;

    operator const UtcT &() const;
    operator UtcT &();
    operator UtcT &() const;
    // in, inout, out, _retn
    const UtcT &in (void) const;
    UtcT &inout (void);
    UtcT &out (void);
    UtcT _retn (void);
    UtcT *ptr (void) const;

  private:
    UtcT *ptr_;
  };

  typedef UtcT &UtcT_out;

  TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_UtcT;

  struct TAO_Export IntervalT
  {
    TimeT lower_bound;
    TimeT upper_bound;
  };

  class TAO_Export IntervalT_var
  {
  public:
    IntervalT_var (void); // default constructor
    IntervalT_var (IntervalT *);
    IntervalT_var (const IntervalT_var &); // copy constructor
    ~IntervalT_var (void); // destructor

    IntervalT_var &operator= (IntervalT *);
    IntervalT_var &operator= (const IntervalT_var &);
    IntervalT *operator-> (void);
    const IntervalT *operator-> (void) const;

    operator const IntervalT &() const;
    operator IntervalT &();
    operator IntervalT &() const;
    // in, inout, out, _retn
    const IntervalT &in (void) const;
    IntervalT &inout (void);
    IntervalT &out (void);
    IntervalT _retn (void);
    IntervalT *ptr (void) const;

  private:
    IntervalT *ptr_;
  };

  typedef IntervalT &IntervalT_out;

  TAO_NAMESPACE_STORAGE_CLASS CORBA::TypeCode_ptr _tc_IntervalT;


}; // module TimeBase

void TAO_Export operator<<= (CORBA::Any &, const TimeBase::UtcT &); // copying version
void TAO_Export operator<<= (CORBA::Any &, TimeBase::UtcT*); // noncopying version
CORBA::Boolean TAO_Export operator>>= (const CORBA::Any &, TimeBase::UtcT *&);
void TAO_Export operator<<= (CORBA::Any &, const TimeBase::IntervalT &); // copying version
void TAO_Export operator<<= (CORBA::Any &, TimeBase::IntervalT*); // noncopying version
CORBA::Boolean TAO_Export operator>>= (const CORBA::Any &, TimeBase::IntervalT *&);

#if defined (__ACE_INLINE__)
#include "TimeBaseC.i"
#else
CORBA::Boolean TAO_Export operator<< (TAO_OutputCDR &, const TimeBase::UtcT &);
CORBA::Boolean TAO_Export operator>> (TAO_InputCDR &, TimeBase::UtcT &);
CORBA::Boolean TAO_Export operator<< (TAO_OutputCDR &, const TimeBase::IntervalT &);
CORBA::Boolean TAO_Export operator>> (TAO_InputCDR &, TimeBase::IntervalT &);
#endif /* defined INLINE */

#if defined(_MSC_VER)
#pragma warning(default:4250)
#endif /* _MSC_VER */

#endif /* TAO_IDL_TIMEBASEC_H */