artefaktur
software engineer &        architecture

 
 
 
 

class Marshaler

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

acdk::lang::dmi::Marshaler Class Reference

#include <Marshaler.h>

Inheritance diagram for acdk::lang::dmi::Marshaler:

acdk::lang::dmi::StandardMarshaler List of all members.

Detailed Description

Abstract base class for general purpose marshaling.

See also:
StandardMarshaler For local standard marshaling


Public Types

enum  MarshalMode {
  Unknown = 0, SendClient, SendServer, ReceiveClient,
  ReceiveServer, SendReceiveClient, SendReceiveServer
}
 The marshalign code passes this to the un/marshaler method to indicate, on what communcation side for which purpose the argument should be marshaled. More...


Public Member Functions

virtual ~Marshaler ()
virtual void marshal (IN(RClass) cls, IN(RObject) obj, byteArray &outstore, MarshalMode mode=Unknown)=0
 Marshals the given obj on basis of given class into the outstore.

virtual RObject unmarshal (IN(RClass) cls, byteArray &instore, MarshalMode mode=Unknown, IN(RObject) cachedObject=Nil)=0
 Unmarshals the on basis of given Class an object using instore.


Member Enumeration Documentation

enum acdk::lang::dmi::Marshaler::MarshalMode
 

The marshalign code passes this to the un/marshaler method to indicate, on what communcation side for which purpose the argument should be marshaled.

Enumeration values:
Unknown 
SendClient  The client sends data.
SendServer  The Server send data to the client.
ReceiveClient  The client receives data.
ReceiveServer  The server receives Data.
SendReceiveClient  Client in and out data.
SendReceiveServer  Server in and out data.

Constructor & Destructor Documentation

virtual acdk::lang::dmi::Marshaler::~Marshaler  )  [inline, virtual]
 


Member Function Documentation

virtual void acdk::lang::dmi::Marshaler::marshal IN(RClass cls,
IN(RObject obj,
byteArray outstore,
MarshalMode  mode = Unknown
[pure virtual]
 

Marshals the given obj on basis of given class into the outstore.

Parameters:
cls The Class, which should be used to marshal
obj the Object instance, which should be marshaled.
outstore the streamed storage
mode On which side and for which purpose the method will be called
Exceptions:
ObjectStreamException 

Implemented in acdk::lang::dmi::StandardMarshaler.

virtual RObject acdk::lang::dmi::Marshaler::unmarshal IN(RClass cls,
byteArray instore,
MarshalMode  mode = Unknown,
IN(RObject cachedObject = Nil
[pure virtual]
 

Unmarshals the on basis of given Class an object using instore.

Parameters:
cls The template to use
instore the buffer, from home to read
mode On which side and for which purpose the method will be called
cachedObject If the interface cache the object, it may can be reused by the marshaler
Returns:
The Object
Exceptions:
ObjectStreamException 

Implemented in acdk::lang::dmi::StandardMarshaler.

 
Last modified 2005-05-08 18:32 by SYSTEM By Artefaktur, Ing. Bureau Kommer