2005/5/9

     
 

class CDRObjectWriter

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

acdkx::orb::CDRObjectWriter Class Reference

#include <CDRObjectWriter.h>

Inheritance diagram for acdkx::orb::CDRObjectWriter:

acdk::io::AbstractFilterWriter acdk::io::ObjectWriter org::omg::CORBA::portable::OutputStream acdk::io::AbstractWriter acdk::io::FilterWriter acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdkx::orb::OrbOutputStream acdkx::orb::ReplyOutputStream acdkx::orb::RequestOutputStream List of all members.

Public Member Functions

 CDRObjectWriter (IN(RWriter) out, IN(org::omg::CORBA::RORB) orb)
virtual void flush ()
virtual void setOut (IN(RWriter) writer)
virtual::acdk::io::RStorage getStorage ()
 Gets the storage reader.

virtual::acdk::io::RWriter getStorageWriter ()
 returns the unfiltered Writer

virtual void write (const byte *cstr, int offset, int len)
virtual void write (byte c)
 default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

virtual void write (IN(RbyteArray) ch, int offset=0, int len=-1)
 default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

virtual void writeBoolean (bool b)
virtual void writeChar (char b)
virtual void writeUcChar (uc2char b)
virtual void writeShort (short b)
virtual void writeInt (int b)
virtual void writeLong (jlong b)
virtual void writeFloat (float b)
virtual void writeDouble (double b)
virtual void writeString (IN(RString) str)
virtual void writeObject (IN(acdk::lang::Object) obj)
 This version write acdk::lang::Object to a Writer.

virtual void writeObject (IN(RClass) cls, IN(acdk::lang::Object) obj)
 This version writes an acdk::lang::Object to a Writer using the Class.

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

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

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

virtual void writeScriptVar (acdk::lang::dmi::ScriptVar &sv, bool withTypeInfo=true, bool withFlags=true)
virtual org::omg::CORBA::RORB orb ()
RInputStream create_input_stream ()
virtual void write_boolean (bool value)
virtual void write_char (char value)
virtual void write_wchar (char value)
virtual void write_octet (byte value)
virtual void write_short (short value)
virtual void write_ushort (short value)
virtual void write_long (int value)
virtual void write_ulong (int value)
virtual void write_longlong (jlong value)
virtual void write_ulonglong (jlong value)
virtual void write_float (float value)
virtual void write_double (double value)
virtual void write_string (IN(RString) value)
virtual void write_wstring (IN(RString) value)
virtual void write_char_array (const char *value, int offset, int length)
virtual void write_acdk_object (IN(::acdk::lang::RObject) value)
 acdkx_orb Extended try figure out themselves, which method applies If instanceOf acdk::io::Serializable -> write_value If instanceOf org::omg::CORBA::Object -> write_Object

virtual void write_Object (IN(::org::omg::CORBA::RObject) value)
 acdkx_orb Extended write object as value

virtual void write_value (IN(::acdk::io::RSerializable) value)
virtual void write_value (IN(::acdk::io::RSerializable) value, IN(::acdk::lang::RString) rep_id)
virtual void write_value (IN(::acdk::io::RSerializable) value, IN(::acdk::lang::RClass) clz)
virtual void write_abstract_interface (IN(::acdk::lang::RObject) obj)
void write_exception (IN(RThrowable) ex)
 writes an exception (Application and SystemExceptions);

void write_repid (IN(::acdk::lang::RObject) obj)
 writes IDL: + classname + :1.0

void write_struct (IN(::acdk::lang::RObject) obj, bool withParents=true)
 write given Object as struct

virtual void write_scriptVar (IN(::acdk::lang::dmi::ScriptVar) sv, ParamCallDirection dir)
 used for DMI over GIOP

virtual void write_fq_object (IN(RObject) obj, int flags)
 write Object with meta infor used for DMI over GIOP


Protected Member Functions

void _checkAlignment (int align)
void write_struct (IN(::acdk::lang::RObject) obj, const::acdk::lang::dmi::ClazzInfo *ci, bool withParents)

Protected Attributes

org::omg::CORBA::RORB _orb

Private Attributes

int _index

Constructor & Destructor Documentation

acdkx::orb::CDRObjectWriter::CDRObjectWriter IN(RWriter)  out,
IN(org::omg::CORBA::RORB)  orb
 


Member Function Documentation

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

RInputStream acdkx::orb::CDRObjectWriter::create_input_stream  )  [virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::defaultWriteObject IN(RClass)  cls,
IN(RObject)  obj
[inline, virtual]
 

not supported

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::flush  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

virtual ::acdk::io::RStorage acdkx::orb::CDRObjectWriter::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::AbstractFilterWriter.

virtual ::acdk::io::RWriter acdkx::orb::CDRObjectWriter::getStorageWriter  )  [inline, virtual]
 

returns the unfiltered Writer

Reimplemented from acdk::io::AbstractFilterWriter.

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

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::setOut IN(RWriter)  writer  )  [inline, virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdkx::orb::CDRObjectWriter::write IN(RbyteArray ch,
int  offset = 0,
int  len = -1
[virtual]
 

default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdkx::orb::CDRObjectWriter::write byte  c  )  [virtual]
 

default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdkx::orb::CDRObjectWriter::write const byte cstr,
int  offset,
int  len
[virtual]
 

Reimplemented from acdk::io::AbstractFilterWriter.

virtual void acdkx::orb::CDRObjectWriter::write_abstract_interface IN(::acdk::lang::RObject obj  )  [virtual]
 

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

virtual void acdkx::orb::CDRObjectWriter::write_acdk_object IN(::acdk::lang::RObject value  )  [virtual]
 

acdkx_orb Extended try figure out themselves, which method applies If instanceOf acdk::io::Serializable -> write_value If instanceOf org::omg::CORBA::Object -> write_Object

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_boolean bool  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_char char  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_char_array const char *  value,
int  offset,
int  length
[virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_double double  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

void acdkx::orb::CDRObjectWriter::write_exception IN(RThrowable)  ex  )  [virtual]
 

writes an exception (Application and SystemExceptions);

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

virtual void acdkx::orb::CDRObjectWriter::write_float float  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_fq_object IN(RObject)  obj,
int  flags
[virtual]
 

write Object with meta infor used for DMI over GIOP

Parameters:
obj Object to write
flags see Modifier May contain ByVal
See also:
enum DmiGiopArgFlags for serialization format

virtual void acdkx::orb::CDRObjectWriter::write_long int  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_longlong jlong  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_Object IN(::org::omg::CORBA::RObject)  value  )  [virtual]
 

acdkx_orb Extended write object as value

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

virtual void acdkx::orb::CDRObjectWriter::write_octet byte  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

void acdkx::orb::CDRObjectWriter::write_repid IN(::acdk::lang::RObject obj  ) 
 

writes IDL: + classname + :1.0

virtual void acdkx::orb::CDRObjectWriter::write_scriptVar IN(::acdk::lang::dmi::ScriptVar sv,
ParamCallDirection  dir
[virtual]
 

used for DMI over GIOP

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

virtual void acdkx::orb::CDRObjectWriter::write_short short  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_string IN(RString value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

void acdkx::orb::CDRObjectWriter::write_struct IN(::acdk::lang::RObject obj,
const::acdk::lang::dmi::ClazzInfo *  ci,
bool  withParents
[protected]
 

void acdkx::orb::CDRObjectWriter::write_struct IN(::acdk::lang::RObject obj,
bool  withParents = true
 

write given acdk::lang::Object as struct

virtual void acdkx::orb::CDRObjectWriter::write_ulong int  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_ulonglong jlong  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_ushort short  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_value IN(::acdk::io::RSerializable value,
IN(::acdk::lang::RClass clz
[inline, virtual]
 

virtual void acdkx::orb::CDRObjectWriter::write_value IN(::acdk::io::RSerializable value,
IN(::acdk::lang::RString rep_id
[inline, virtual]
 

virtual void acdkx::orb::CDRObjectWriter::write_value IN(::acdk::io::RSerializable value  )  [virtual]
 

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

virtual void acdkx::orb::CDRObjectWriter::write_wchar char  value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::write_wstring IN(RString value  )  [inline, virtual]
 

Implements org::omg::CORBA::portable::OutputStream.

virtual void acdkx::orb::CDRObjectWriter::writeBoolean bool  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeChar char  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

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

not supported

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeDouble double  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeFloat float  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeInt int  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeLong jlong  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeObject IN(RClass cls,
IN(acdk::lang::Object obj
[virtual]
 

This version writes an acdk::lang::Object to a Writer using the Class.

In normal case, thit version writes the data untagged (i.e. no meta info) into the writer.

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeObject IN(acdk::lang::Object obj  )  [virtual]
 

This version write acdk::lang::Object to a Writer.

In normal case, it also write a description (tagged) of the Class (for ClassLoader) at the beginning.

Parameters:
obj the acdk::lang::Object to writer

Reimplemented from acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeScriptVar acdk::lang::dmi::ScriptVar sv,
bool  withTypeInfo = true,
bool  withFlags = true
[virtual]
 

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

Reimplemented from acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeShort short  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeString IN(RString str  )  [virtual]
 

Implements acdk::io::ObjectWriter.

virtual void acdkx::orb::CDRObjectWriter::writeUcChar uc2char  b  )  [virtual]
 

Implements acdk::io::ObjectWriter.

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

not supported

Implements acdk::io::ObjectWriter.


Member Data Documentation

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

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