summaryrefslogtreecommitdiff
path: root/TAO/tao/TimeBaseC.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/TimeBaseC.i')
-rw-r--r--TAO/tao/TimeBaseC.i175
1 files changed, 123 insertions, 52 deletions
diff --git a/TAO/tao/TimeBaseC.i b/TAO/tao/TimeBaseC.i
index 73ba4f4d77e..3db4462317f 100644
--- a/TAO/tao/TimeBaseC.i
+++ b/TAO/tao/TimeBaseC.i
@@ -19,12 +19,16 @@
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
+
+// TAO_IDL - Generated from
+// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194
+
// *************************************************************
// Inline operations for class TimeBase::UtcT_var
// *************************************************************
ACE_INLINE
-TimeBase::UtcT_var::UtcT_var (void) // default constructor
+TimeBase::UtcT_var::UtcT_var (void)
: ptr_ (0)
{}
@@ -34,15 +38,19 @@ TimeBase::UtcT_var::UtcT_var (UtcT *p)
{}
ACE_INLINE
-TimeBase::UtcT_var::UtcT_var (const ::TimeBase::UtcT_var &p) // copy constructor
+TimeBase::UtcT_var::UtcT_var (const ::TimeBase::UtcT_var &p)
{
if (p.ptr_)
- ACE_NEW (this->ptr_, ::TimeBase::UtcT (*p.ptr_));
+ {
+ ACE_NEW (this->ptr_, ::TimeBase::UtcT (*p.ptr_));
+ }
else
- this->ptr_ = 0;
+ {
+ this->ptr_ = 0;
+ }
}
-// fixed-size types only
+// Fixed-size types only.
ACE_INLINE
TimeBase::UtcT_var::UtcT_var (const ::TimeBase::UtcT &p)
{
@@ -50,33 +58,39 @@ TimeBase::UtcT_var::UtcT_var (const ::TimeBase::UtcT &p)
}
ACE_INLINE
-TimeBase::UtcT_var::~UtcT_var (void) // destructor
+TimeBase::UtcT_var::~UtcT_var (void)
{
delete this->ptr_;
}
-ACE_INLINE TimeBase::UtcT_var &
-TimeBase::UtcT_var::operator= (UtcT *p)
+ACE_INLINE
+TimeBase::UtcT_var &
+TimeBase::UtcT_var::operator= (UtcT *_tao_struct_var)
{
delete this->ptr_;
- this->ptr_ = p;
+ this->ptr_ = _tao_struct_var;
return *this;
}
-ACE_INLINE ::TimeBase::UtcT_var &
-TimeBase::UtcT_var::operator= (const ::TimeBase::UtcT_var &p)
+ACE_INLINE
+::TimeBase::UtcT_var &
+TimeBase::UtcT_var::operator= (const ::TimeBase::UtcT_var &_tao_struct_var)
{
- if (this != &p)
+ if (this != &_tao_struct_var)
{
- if (p.ptr_ == 0)
+ if (_tao_struct_var.ptr_ == 0)
{
delete this->ptr_;
this->ptr_ = 0;
}
else
{
- UtcT *deep_copy =
- new UtcT (*p.ptr_);
+ UtcT *deep_copy = 0;
+ ACE_NEW_RETURN (
+ deep_copy,
+ UtcT (*_tao_struct_var.ptr_),
+ *this
+ );
if (deep_copy != 0)
{
@@ -98,8 +112,13 @@ TimeBase::UtcT_var::operator= (const ::TimeBase::UtcT &p)
if (this->ptr_ != &p)
{
delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_, ::TimeBase::UtcT (p), *this);
+ ACE_NEW_RETURN (
+ this->ptr_,
+ ::TimeBase::UtcT (p),
+ *this
+ );
}
+
return *this;
}
@@ -164,12 +183,15 @@ TimeBase::UtcT_var::ptr (void) const
return this->ptr_;
}
+// TAO_IDL - Generated from
+// W:\ACE_wrappers\TAO\TAO_IDL\be\be_structure.cpp:194
+
// *************************************************************
// Inline operations for class TimeBase::IntervalT_var
// *************************************************************
ACE_INLINE
-TimeBase::IntervalT_var::IntervalT_var (void) // default constructor
+TimeBase::IntervalT_var::IntervalT_var (void)
: ptr_ (0)
{}
@@ -179,15 +201,19 @@ TimeBase::IntervalT_var::IntervalT_var (IntervalT *p)
{}
ACE_INLINE
-TimeBase::IntervalT_var::IntervalT_var (const ::TimeBase::IntervalT_var &p) // copy constructor
+TimeBase::IntervalT_var::IntervalT_var (const ::TimeBase::IntervalT_var &p)
{
if (p.ptr_)
- ACE_NEW (this->ptr_, ::TimeBase::IntervalT (*p.ptr_));
+ {
+ ACE_NEW (this->ptr_, ::TimeBase::IntervalT (*p.ptr_));
+ }
else
- this->ptr_ = 0;
+ {
+ this->ptr_ = 0;
+ }
}
-// fixed-size types only
+// Fixed-size types only.
ACE_INLINE
TimeBase::IntervalT_var::IntervalT_var (const ::TimeBase::IntervalT &p)
{
@@ -195,33 +221,39 @@ TimeBase::IntervalT_var::IntervalT_var (const ::TimeBase::IntervalT &p)
}
ACE_INLINE
-TimeBase::IntervalT_var::~IntervalT_var (void) // destructor
+TimeBase::IntervalT_var::~IntervalT_var (void)
{
delete this->ptr_;
}
-ACE_INLINE TimeBase::IntervalT_var &
-TimeBase::IntervalT_var::operator= (IntervalT *p)
+ACE_INLINE
+TimeBase::IntervalT_var &
+TimeBase::IntervalT_var::operator= (IntervalT *_tao_struct_var)
{
delete this->ptr_;
- this->ptr_ = p;
+ this->ptr_ = _tao_struct_var;
return *this;
}
-ACE_INLINE ::TimeBase::IntervalT_var &
-TimeBase::IntervalT_var::operator= (const ::TimeBase::IntervalT_var &p)
+ACE_INLINE
+::TimeBase::IntervalT_var &
+TimeBase::IntervalT_var::operator= (const ::TimeBase::IntervalT_var &_tao_struct_var)
{
- if (this != &p)
+ if (this != &_tao_struct_var)
{
- if (p.ptr_ == 0)
+ if (_tao_struct_var.ptr_ == 0)
{
delete this->ptr_;
this->ptr_ = 0;
}
else
{
- IntervalT *deep_copy =
- new IntervalT (*p.ptr_);
+ IntervalT *deep_copy = 0;
+ ACE_NEW_RETURN (
+ deep_copy,
+ IntervalT (*_tao_struct_var.ptr_),
+ *this
+ );
if (deep_copy != 0)
{
@@ -243,8 +275,13 @@ TimeBase::IntervalT_var::operator= (const ::TimeBase::IntervalT &p)
if (this->ptr_ != &p)
{
delete this->ptr_;
- ACE_NEW_RETURN (this->ptr_, ::TimeBase::IntervalT (p), *this);
+ ACE_NEW_RETURN (
+ this->ptr_,
+ ::TimeBase::IntervalT (p),
+ *this
+ );
}
+
return *this;
}
@@ -309,55 +346,89 @@ TimeBase::IntervalT_var::ptr (void) const
return this->ptr_;
}
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const TimeBase::UtcT &_tao_aggregate)
+// TAO_IDL - Generated from
+// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103
+
+ACE_INLINE
+CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const TimeBase::UtcT &_tao_aggregate
+ )
{
if (
(strm << _tao_aggregate.time) &&
(strm << _tao_aggregate.inacclo) &&
(strm << _tao_aggregate.inacchi) &&
(strm << _tao_aggregate.tdf)
- )
- return 1;
+ )
+ {
+ return 1;
+ }
else
- return 0;
-
+ {
+ return 0;
+ }
}
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, TimeBase::UtcT &_tao_aggregate)
+ACE_INLINE
+CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ TimeBase::UtcT &_tao_aggregate
+ )
{
if (
(strm >> _tao_aggregate.time) &&
(strm >> _tao_aggregate.inacclo) &&
(strm >> _tao_aggregate.inacchi) &&
(strm >> _tao_aggregate.tdf)
- )
- return 1;
+ )
+ {
+ return 1;
+ }
else
- return 0;
-
+ {
+ return 0;
+ }
}
-ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &strm, const TimeBase::IntervalT &_tao_aggregate)
+// TAO_IDL - Generated from
+// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_structure/cdr_op_ci.cpp:103
+
+ACE_INLINE
+CORBA::Boolean operator<< (
+ TAO_OutputCDR &strm,
+ const TimeBase::IntervalT &_tao_aggregate
+ )
{
if (
(strm << _tao_aggregate.lower_bound) &&
(strm << _tao_aggregate.upper_bound)
- )
- return 1;
+ )
+ {
+ return 1;
+ }
else
- return 0;
-
+ {
+ return 0;
+ }
}
-ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &strm, TimeBase::IntervalT &_tao_aggregate)
+ACE_INLINE
+CORBA::Boolean operator>> (
+ TAO_InputCDR &strm,
+ TimeBase::IntervalT &_tao_aggregate
+ )
{
if (
(strm >> _tao_aggregate.lower_bound) &&
(strm >> _tao_aggregate.upper_bound)
- )
- return 1;
+ )
+ {
+ return 1;
+ }
else
- return 0;
-
+ {
+ return 0;
+ }
}