ACE  6.3.3
Classes | Macros | Functions
CDR_Base.h File Reference
#include "ace/Basic_Types.h"
#include "ace/Default_Constants.h"
#include "ace/Global_Macros.h"
#include "ace/iosfwd.h"
#include <iterator>
#include "ace/CDR_Base.inl"

Classes

class  ACE_CDR
 Keep constants and some routines common to both Output and Input CDR streams. More...
 
struct  ACE_CDR::Float
 
struct  ACE_CDR::Double
 
struct  ACE_CDR::LongDouble
 
class  ACE_CDR::Fixed
 
class  ACE_CDR::Fixed::Proxy
 
class  ACE_CDR::Fixed::IteratorBase
 
class  ACE_CDR::Fixed::Iterator
 
class  ACE_CDR::Fixed::ConstIterator
 

Macros

#define ACE_CDR_BYTE_ORDER   0
 
#define ACE_CDR_GIOP_MAJOR_VERSION   1
 
#define ACE_CDR_GIOP_MINOR_VERSION   2
 
Basic OMG IDL Types

These types are for use in the CDR classes. The cleanest way to avoid complaints from all compilers is to define them all.

#define ACE_CDR_LONGLONG_INITIALIZER   0
 
#define NONNATIVE_LONGDOUBLE
 
#define ACE_CDR_LONG_DOUBLE_INITIALIZER   {{0}}
 
#define ACE_CDR_LONG_DOUBLE_ASSIGNMENT(LHS, RHS)   LHS.assign (RHS)
 
#define ACE_HAS_CDR_FIXED
 

Functions

ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &lhs, const ACE_CDR::Fixed &rhs)
 
std::istream & operator>> (std::istream &lhs, ACE_CDR::Fixed &rhs)
 
bool operator< (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
bool operator> (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
bool operator>= (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
bool operator<= (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
bool operator== (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
bool operator!= (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
ACE_CDR::Fixed operator+ (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
ACE_CDR::Fixed operator- (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
ACE_CDR::Fixed operator* (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 
ACE_CDR::Fixed operator/ (const ACE_CDR::Fixed &lhs, const ACE_CDR::Fixed &rhs)
 

Detailed Description

ACE Common Data Representation (CDR) basic types.

The current implementation assumes that the host has 1-byte, 2-byte and 4-byte integral types, and that it has single precision and double precision IEEE floats. Those assumptions are pretty good these days, with Crays being the only known exception.

Author
TAO version by
Aniruddha Gokhale gokha.nosp@m.le@c.nosp@m.s.wus.nosp@m.tl.e.nosp@m.du
Carlos O'Ryancorya.nosp@m.n@cs.nosp@m..wust.nosp@m.l.ed.nosp@m.u
ACE version by
Jeff Parsons parso.nosp@m.ns@c.nosp@m.s.wus.nosp@m.tl.e.nosp@m.du
Istvan Buki istva.nosp@m.n.bu.nosp@m.ki@eu.nosp@m.rone.nosp@m.t.be

Macro Definition Documentation

#define ACE_CDR_BYTE_ORDER   0
#define ACE_CDR_GIOP_MAJOR_VERSION   1
#define ACE_CDR_GIOP_MINOR_VERSION   2
#define ACE_CDR_LONG_DOUBLE_ASSIGNMENT (   LHS,
  RHS 
)    LHS.assign (RHS)
#define ACE_CDR_LONG_DOUBLE_INITIALIZER   {{0}}
#define ACE_CDR_LONGLONG_INITIALIZER   0
#define ACE_HAS_CDR_FIXED
#define NONNATIVE_LONGDOUBLE

Function Documentation

bool operator!= ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
ACE_CDR::Fixed operator* ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
ACE_CDR::Fixed operator+ ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
ACE_CDR::Fixed operator- ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
ACE_CDR::Fixed operator/ ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
bool operator< ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  lhs,
const ACE_CDR::Fixed rhs 
)
bool operator<= ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
bool operator== ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
bool operator> ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
bool operator>= ( const ACE_CDR::Fixed lhs,
const ACE_CDR::Fixed rhs 
)
inline
std::istream& operator>> ( std::istream &  lhs,
ACE_CDR::Fixed rhs 
)