diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-07 17:14:20 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-07 17:14:20 +0000 |
commit | a0af4517dd908245d12ca05b4895033cecad4826 (patch) | |
tree | 3c1ff4952d51f56a09922786025f8760bcc13d09 /TAO/tao/TimeBaseC.h | |
parent | c42c7a935e6c79194b005e6b7fc7a7d92392c639 (diff) | |
download | ATCD-a0af4517dd908245d12ca05b4895033cecad4826.tar.gz |
ChangeLogTag:Wed Apr 7 12:03:33 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/TimeBaseC.h')
-rw-r--r-- | TAO/tao/TimeBaseC.h | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/TAO/tao/TimeBaseC.h b/TAO/tao/TimeBaseC.h new file mode 100644 index 00000000000..87fe9d5a1a1 --- /dev/null +++ b/TAO/tao/TimeBaseC.h @@ -0,0 +1,158 @@ +/* -*- 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 *&); + +#ifndef __ACE_INLINE__ + +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 /* __ACE_INLINE__ */ + + +#if defined (__ACE_INLINE__) +#include "TimeBaseC.i" +#endif /* defined INLINE */ + +#if defined(_MSC_VER) +#pragma warning(default:4250) +#endif /* _MSC_VER */ + +#endif /* TAO_IDL_TIMEBASEC_H */ |