Main Page   Packages   Class Hierarchy   Compound List   Compound Members   Related Pages  

Sct::File.ObjectManagerFile Class Reference

The ObjectManager reads from binary files. More...

Inheritance diagram for Sct::File.ObjectManagerFile:

Sct.AbstractObjectManager Sct.ObjectManager List of all members.

Public Member Functions

Streamable readObject (byte[] data, String className) throws java.io.IOException
 Read an object from a raw byte[] Useful for passing structures around over IPC!

Serializable readObject (String name) throws java.io.IOException
 Read a Serializable using the back-end specific identifier.

Serializable readObject (String uniqueID, String className) throws java.io.IOException
 Read a Serializable with uniqueID and className as given.

Name writeObject (Serializable object) throws java.io.IOException
 Write a Serializable object.


Static Public Member Functions

ObjectManagerFile getInstance ()
 Get the global instance of the File IO Manager.


Detailed Description

The ObjectManager reads from binary files.

It should use exactly the same format as the C++ code!

Author:
Matthew Palmer


Member Function Documentation

Serializable Sct.File.ObjectManagerFile.readObject String    uniqueID,
String    className
throws java.io.IOException
 

Read a Serializable with uniqueID and className as given.

Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Serializable Sct.File.ObjectManagerFile.readObject String    name throws java.io.IOException
 

Read a Serializable using the back-end specific identifier.

Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.

Name Sct.File.ObjectManagerFile.writeObject Serializable    object throws java.io.IOException
 

Write a Serializable object.

Todo:
Should this take an extra back-end dependant parameter?
Returns:
a Name object that can be used to read the written object
Exceptions:
IOException if a problem occurs during IO

Implements Sct.ObjectManager.


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