Main Page   Packages   Class Hierarchy   Compound List   Compound Members   Related Pages  

Sct.AbstractObjectManager Class Reference

Provides a simple implementation of some of the methods and notable adds simple construction using reflection. More...

Inheritance diagram for Sct.AbstractObjectManager:

Sct.ObjectManager Sct::File.ObjectManagerFile Sct::TestFramework.TestObjectManager List of all members.

Public Member Functions

Streamable readObject (IStream s, String name) throws IOException
 A simple implementation that calss readClassName to get the className from the IStream then forwards to readObject(IStream s, String name, String className);.

Streamable readObject (IStream s, String name, String className) throws IOException
 Uses createObject to create a Streamable and read it in from the Stream.

void writeObject (OStream s, String name, Streamable object, boolean writeClassName) throws IOException
 A simple implementation - if writeClassName, calls writeClassName to write the className then class object.write(OStream s, this).


Protected Member Functions

Streamable createObject (IStream s, String className) throws IOException
 Creates the object with the className as given.

String readClassName (IStream in) throws IOException
 A simple method to read the className from the Stream This should be overridden if necessary by the implementation.

void writeClassName (OStream out, String className) throws IOException
 Writes a className.


Detailed Description

Provides a simple implementation of some of the methods and notable adds simple construction using reflection.

Implementors should feel free to override any/all (tho if all why use this!?) the methods.

Author:
Matthew Palmer


Member Function Documentation

Streamable Sct.AbstractObjectManager.createObject IStream    s,
String    className
throws IOException [protected]
 

Creates the object with the className as given.

Uses the classLoader used to load this class.

String Sct.AbstractObjectManager.readClassName IStream    in throws IOException [protected]
 

A simple method to read the className from the Stream This should be overridden if necessary by the implementation.

It provides simple checking that ClassName returned is indeed a className and not something else!

void Sct.AbstractObjectManager.writeClassName OStream    out,
String    className
throws IOException [protected]
 

Writes a className.

Goes together with readClassName and should be overriden if necessary.


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:38:49 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3