2005/5/9

     
 

class CDRObjectReader

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdkx::orb::CDRObjectReader Class Reference

#include <CDRObjectReader.h>

Inheritance diagram for acdkx::orb::CDRObjectReader:

acdk::io::AbstractFilterReader acdk::io::ObjectReader org::omg::CORBA::portable::InputStream acdk::io::AbstractReader acdk::io::FilterReader acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdkx::orb::OrbInputStream acdkx::orb::ReplyInputStream List of all members.

Public Member Functions

 CDRObjectReader (IN(RReader) out, IN(org::omg::CORBA::RORB) orb)
virtual int read ()
 read a single byte from stream

virtual int read (IN(RbyteArray) buffer, int offset=0, int len=1)
 read the len bytes into buffer at offset of the buffer

virtual int read (byte *buffer, int offset, int len)
RReader getStorageReader ()
overwrite jlong skip (jlong n)
 Move forwart into the stream.

virtual void reset ()
 if mark is set, set stream to mark point otherwise to begin of this stream.

virtual void setIn (IN(RReader) reader)
overwrite acdk::io::RStorage getStorage ()
 Gets the storage reader.

virtual jlong seek (acdk::io::SeekPos seekrel, jlong seekpos)
 Set stream position in this Reader to given position.

virtual bool readBoolean ()
virtual char readChar ()
virtual uc2char readUcChar ()
virtual double readDouble ()
virtual float readFloat ()
virtual int readInt ()
virtual jlong readLong ()
virtual short readShort ()
virtual RString readString ()
virtual::acdk::lang::RObject readObject ()
 in this Version the stream itself has to store meta information about the class of the object.

virtual::acdk::lang::RObject readObject (IN(::acdk::lang::RClass) clz)
 In this version, the stream may not store meta information about the classes.

virtual RClass readClassDescriptor (IN(RClass) cls)
 not supported

virtual void defaultReadObject (IN(RClass) cls, IN(acdk::lang::Object) obj)
 not supported

virtual acdk::lang::dmi::ScriptVar readScriptVar (bool withTypeInfo=true, bool withFlags=true)
virtual org::omg::CORBA::RORB orb ()
virtual bool read_boolean ()
virtual char read_char ()
virtual char read_wchar ()
virtual byte read_octet ()
virtual short read_short ()
virtual short read_ushort ()
virtual int read_long ()
virtual int read_ulong ()
virtual jlong read_longlong ()
virtual long read_ulonglong ()
virtual float read_float ()
virtual double read_double ()
virtual RString read_string ()
virtual void read_char_array (char *value, int offset, int length)
virtual::acdk::lang::RObject read_acdk_object (IN(::acdk::lang::RClass) clz)
 try figure out themselves, which method applies.

virtual::org::omg::CORBA::RObject read_Object ()
 reads an IOR

virtual::org::omg::CORBA::RObject read_Object (IN(::acdk::lang::RClass) clz)
 reads an IOR

virtual::acdk::lang::RObject read_abstract_interface ()
virtual::acdk::lang::RObject read_abstract_interface (IN(::acdk::lang::RClass) clz)
virtual::acdk::lang::RObject read_value ()
virtual::acdk::lang::RObject read_value (IN(::acdk::lang::RString) rep_id)
virtual::acdk::lang::RObject read_value (IN(::acdk::lang::RClass) clz)
virtual::acdk::lang::RObject read_value (IN(::acdk::lang::RObject) value)
virtual void read_scriptVar (OUT(::acdk::lang::dmi::ScriptVar) sv, ParamCallDirection dir)
 used for DMI over GIOP

::acdk::lang::RObject read_fq_object (int flags)
 read fq acdk::lang::Object from Stream used for DMI over GIOP

void read_struct (IN(acdk::lang::Object) obj, bool withParent=true)
void read_struct (IN(::acdk::lang::RObject) obj, const::acdk::lang::dmi::ClazzInfo *ci, bool withParents)
RThrowable read_exception ()

Protected Member Functions

void _checkAlignment (int align)

Protected Attributes

org::omg::CORBA::RORB _orb

Private Attributes

int _index

Constructor & Destructor Documentation

acdkx::orb::CDRObjectReader::CDRObjectReader IN(RReader out,
IN(org::omg::CORBA::RORB orb
 


Member Function Documentation

void acdkx::orb::CDRObjectReader::_checkAlignment int  align  )  [protected]
 

virtual void acdkx::orb::CDRObjectReader::defaultReadObject IN(RClass cls,
IN(acdk::lang::Object obj
[inline, virtual]
 

not supported

Implements acdk::io::ObjectReader.

overwrite acdk::io::RStorage acdkx::orb::CDRObjectReader::getStorage  )  [inline, virtual]
 

Gets the storage reader.

If this contains an FilterReader instead of a Storage, the storage reader of this filter reader will be returned (recursive).

Reimplemented from acdk::io::AbstractFilterReader.

RReader acdkx::orb::CDRObjectReader::getStorageReader  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterReader.

virtual org::omg::CORBA::RORB acdkx::orb::CDRObjectReader::orb  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual int acdkx::orb::CDRObjectReader::read byte buffer,
int  offset,
int  len
[virtual]
 

See also:
other read(RbyteArray, int, int)

Reimplemented from acdk::io::AbstractFilterReader.

virtual int acdkx::orb::CDRObjectReader::read IN(RbyteArray buffer,
int  offset = 0,
int  len = 1
[virtual]
 

read the len bytes into buffer at offset of the buffer

Parameters:
buffer where to write the bytes
offset offset to write into buffer
len how many bytes to read. if == -1 read into many bytes, that fits into buffer (buffer->length() - offset) ``
Returns:
number of bytes readed. may less than input if EOS is reached
Exceptions:
EOF exception, if trying to read behind EOS

Reimplemented from acdk::io::AbstractFilterReader.

virtual int acdkx::orb::CDRObjectReader::read  )  [virtual]
 

read a single byte from stream

Returns:
the byte readed or -1 if EOS.
Exceptions:
EOF exception, if trying to read behind EOS

Reimplemented from acdk::io::AbstractFilterReader.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_abstract_interface IN(::acdk::lang::RClass clz  ) 
 

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_abstract_interface  ) 
 

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_acdk_object IN(::acdk::lang::RClass clz  )  [virtual]
 

try figure out themselves, which method applies.

If instanceOf acdk::io::Serializable -> readObject If instanceOf acdk::lang::Throwable -> readObject If instanceOf org::omg::CORBA::Object -> read_Object

Implements org::omg::CORBA::portable::InputStream.

virtual bool acdkx::orb::CDRObjectReader::read_boolean  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual char acdkx::orb::CDRObjectReader::read_char  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual void acdkx::orb::CDRObjectReader::read_char_array char *  value,
int  offset,
int  length
[virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual double acdkx::orb::CDRObjectReader::read_double  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

RThrowable acdkx::orb::CDRObjectReader::read_exception  ) 
 

virtual float acdkx::orb::CDRObjectReader::read_float  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_fq_object int  flags  ) 
 

read fq acdk::lang::Object from Stream used for DMI over GIOP

Parameters:
flags see Modifier May contain ByVal
See also:
enum DmiGiopArgFlags for serialization format

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual int acdkx::orb::CDRObjectReader::read_long  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual jlong acdkx::orb::CDRObjectReader::read_longlong  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual ::org::omg::CORBA::RObject acdkx::orb::CDRObjectReader::read_Object IN(::acdk::lang::RClass clz  ) 
 

reads an IOR

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual ::org::omg::CORBA::RObject acdkx::orb::CDRObjectReader::read_Object  )  [virtual]
 

reads an IOR

Implements org::omg::CORBA::portable::InputStream.

virtual byte acdkx::orb::CDRObjectReader::read_octet  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual void acdkx::orb::CDRObjectReader::read_scriptVar OUT(::acdk::lang::dmi::ScriptVar sv,
ParamCallDirection  dir
[virtual]
 

used for DMI over GIOP

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual short acdkx::orb::CDRObjectReader::read_short  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual RString acdkx::orb::CDRObjectReader::read_string  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

void acdkx::orb::CDRObjectReader::read_struct IN(::acdk::lang::RObject obj,
const::acdk::lang::dmi::ClazzInfo *  ci,
bool  withParents
 

void acdkx::orb::CDRObjectReader::read_struct IN(acdk::lang::Object obj,
bool  withParent = true
 

virtual int acdkx::orb::CDRObjectReader::read_ulong  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual long acdkx::orb::CDRObjectReader::read_ulonglong  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual short acdkx::orb::CDRObjectReader::read_ushort  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_value IN(::acdk::lang::RObject value  )  [inline]
 

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_value IN(::acdk::lang::RClass clz  )  [inline]
 

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_value IN(::acdk::lang::RString rep_id  )  [inline]
 

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::read_value  )  [inline]
 

Reimplemented from org::omg::CORBA::portable::InputStream.

virtual char acdkx::orb::CDRObjectReader::read_wchar  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::InputStream.

virtual bool acdkx::orb::CDRObjectReader::readBoolean  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual char acdkx::orb::CDRObjectReader::readChar  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual RClass acdkx::orb::CDRObjectReader::readClassDescriptor IN(RClass cls  )  [inline, virtual]
 

not supported

Implements acdk::io::ObjectReader.

virtual double acdkx::orb::CDRObjectReader::readDouble  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual float acdkx::orb::CDRObjectReader::readFloat  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual int acdkx::orb::CDRObjectReader::readInt  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual jlong acdkx::orb::CDRObjectReader::readLong  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::readObject IN(::acdk::lang::RClass clz  )  [virtual]
 

In this version, the stream may not store meta information about the classes.

Implements acdk::io::ObjectReader.

virtual ::acdk::lang::RObject acdkx::orb::CDRObjectReader::readObject  )  [virtual]
 

in this Version the stream itself has to store meta information about the class of the object.

Implements acdk::io::ObjectReader.

virtual acdk::lang::dmi::ScriptVar acdkx::orb::CDRObjectReader::readScriptVar bool  withTypeInfo = true,
bool  withFlags = true
[virtual]
 

Parameters:
withTypeInfo the the is encoded in the stream
withFlags writes also the flags

Reimplemented from acdk::io::ObjectReader.

virtual short acdkx::orb::CDRObjectReader::readShort  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual RString acdkx::orb::CDRObjectReader::readString  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual uc2char acdkx::orb::CDRObjectReader::readUcChar  )  [virtual]
 

Implements acdk::io::ObjectReader.

virtual void acdkx::orb::CDRObjectReader::reset  )  [inline, virtual]
 

if mark is set, set stream to mark point otherwise to begin of this stream.

Reimplemented from acdk::io::AbstractFilterReader.

virtual jlong acdkx::orb::CDRObjectReader::seek acdk::io::SeekPos  seekrel,
jlong  seekpos
[inline, virtual]
 

Set stream position in this Reader to given position.

Returns:
the absolute position in this stream

Reimplemented from acdk::io::AbstractFilterReader.

virtual void acdkx::orb::CDRObjectReader::setIn IN(RReader reader  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterReader.

overwrite jlong acdkx::orb::CDRObjectReader::skip jlong  n  )  [inline, virtual]
 

Move forwart into the stream.

Returns:
how many bytes skipped. May less then input, in case EOS is reached

Reimplemented from acdk::io::AbstractFilterReader.


Member Data Documentation

int acdkx::orb::CDRObjectReader::_index [private]
 

org::omg::CORBA::RORB acdkx::orb::CDRObjectReader::_orb [protected]