Functions

CDR.inl File Reference

#include "tao/SystemException.h"
Include dependency graph for CDR.inl:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::Short x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::UShort x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::Long x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::ULong x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::LongLong x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::ULongLong x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::LongDouble x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::Float x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, CORBA::Double x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, const char *x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, const CORBA::WChar *x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, ACE_OutputCDR::from_string x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, ACE_OutputCDR::from_wstring x)
CORBA::Boolean operator<< (TAO_OutputCDR &os, const std::string &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::Short &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::UShort &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::Long &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::ULong &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::LongLong &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::ULongLong &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::LongDouble &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::Float &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::Double &x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::Char *&x)
CORBA::Boolean operator>> (TAO_InputCDR &is, CORBA::WChar *&x)
CORBA::Boolean operator>> (TAO_InputCDR &is, ACE_InputCDR::to_string x)
CORBA::Boolean operator>> (TAO_InputCDR &is, ACE_InputCDR::to_wstring x)
CORBA::Boolean operator>> (TAO_InputCDR &is, std::string &x)

Function Documentation

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::Short  x 
)

Definition at line 335 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::SHORT_ALIGN,
                        sizeof (CORBA::Short))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::UShort  x 
)

Definition at line 344 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::SHORT_ALIGN,
                        sizeof (CORBA::UShort))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::ULong  x 
)

Definition at line 362 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONG_ALIGN,
                        sizeof (CORBA::ULong))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::Float  x 
)

Definition at line 398 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONG_ALIGN,
                        sizeof (CORBA::Float))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::Double  x 
)

Definition at line 407 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONGLONG_ALIGN,
                        sizeof (CORBA::Double))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::LongLong  x 
)

Definition at line 371 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONGLONG_ALIGN,
                        sizeof (CORBA::LongLong))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
const char *  x 
)

Definition at line 416 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::OCTET_ALIGN,
                        sizeof (char))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
const CORBA::WChar x 
)

Definition at line 425 of file CDR.inl.

{
  return
    os.fragment_stream ((sizeof (CORBA::WChar) == 2
                         ? ACE_CDR::SHORT_ALIGN
                         : ACE_CDR::LONG_ALIGN),
                        sizeof (CORBA::WChar))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::Long  x 
)

Definition at line 353 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONG_ALIGN,
                        sizeof (CORBA::Long))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::ULongLong  x 
)

Definition at line 380 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONGLONG_ALIGN,
                        sizeof (CORBA::ULongLong))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

Definition at line 436 of file CDR.inl.

{
  if (x.bound_ != 0 && x.val_ != 0 &&
      ACE_OS::strlen (x.val_) > x.bound_)
    {
      throw ::CORBA::BAD_PARAM ();
    }
  return os << x.val_;
}

Definition at line 447 of file CDR.inl.

{
  if (x.bound_ != 0 && x.val_ != 0 &&
      ACE_OS::strlen (x.val_) > x.bound_)
    {
      throw ::CORBA::BAD_PARAM ();
    }
  return os << x.val_;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
CORBA::LongDouble  x 
)

Definition at line 389 of file CDR.inl.

{
  return
    os.fragment_stream (ACE_CDR::LONGDOUBLE_ALIGN,
                        sizeof (CORBA::LongDouble))
    && static_cast<ACE_OutputCDR &> (os) << x;
}

CORBA::Boolean operator<< ( TAO_OutputCDR os,
const std::string &  x 
)

Definition at line 458 of file CDR.inl.

{
  return os << x.c_str ();
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::Short x 
)

Definition at line 466 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::ULong x 
)

Definition at line 484 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::ULongLong x 
)

Definition at line 496 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::LongDouble x 
)

Definition at line 502 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::Char *&  x 
)

Definition at line 520 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::WChar *&  x 
)

Definition at line 526 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

Definition at line 545 of file CDR.inl.

{
  CORBA::Boolean const marshal_flag =
    is >> const_cast<ACE_CDR::WChar *&> (x.val_);
  if (marshal_flag && x.bound_ != 0 && x.val_ != 0 &&
      ACE_OS::strlen (x.val_) > x.bound_)
    {
      throw ::CORBA::BAD_PARAM ();
    }
  return marshal_flag;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
std::string &  x 
)

Definition at line 558 of file CDR.inl.

{
  char *buf = 0;
  CORBA::Boolean const marshal_flag = is >> buf;
  x.assign (buf);
  ACE::strdelete (buf);
  return marshal_flag;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::Long x 
)

Definition at line 478 of file CDR.inl.

{
  return static_cast<ACE_InputCDR&> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::LongLong x 
)

Definition at line 490 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::Double x 
)

Definition at line 514 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
ACE_InputCDR::to_string  x 
)

Definition at line 532 of file CDR.inl.

{
  CORBA::Boolean const marshal_flag =
    is >> const_cast<ACE_CDR::Char *&> (x.val_);
  if (marshal_flag && x.bound_ != 0 && x.val_ != 0 &&
      ACE_OS::strlen (x.val_) > x.bound_)
    {
      throw ::CORBA::BAD_PARAM ();
    }
  return marshal_flag;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::UShort x 
)

Definition at line 472 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

CORBA::Boolean operator>> ( TAO_InputCDR is,
CORBA::Float x 
)

Definition at line 508 of file CDR.inl.

{
  return static_cast<ACE_InputCDR &> (is) >> x;
}

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines