coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

ObjectFileHeader Class Reference

The class ObjectFileHeader represents the header information of an object file. More...

#include <ObjectFileImp.h>

Inheritance diagram for ObjectFileHeader

Inheritance graph
[legend]
Collaboration diagram for ObjectFileHeader:

Collaboration graph
[legend]
List of all members.

Public Types

typedef DataChunk inherited

Public Methods

 ObjectFileHeader ()
 ObjectFileHeader (long type,long version,const string &name)
virtual unsigned long getStreamSize ()
virtual unsigned long getStreamChunk ()
virtual void write (OutputStreamWriterNDR &os)
virtual void read (InputStreamWriterNDR &is)

Protected Attributes

long nVersion
long nType
std::string sName

Detailed Description

The class ObjectFileHeader represents the header information of an object file.

It contains information about the object file version, the type of the object file (scene or library) and the object file name. The header have to exists in all object files and should be the first chunk in the file.

ObjectFile -- HEADER (mandatory): \begin{verbatim} Offset Size Type Comment --------------------------------------------------------- 0 4 Byte fourcc chunkname 'HEAD' 4 4 Byte int32 size of the chunk 8 4 Byte int32 file version tag 12 4 Byte int32 file type (scene or library) 16 x Byte string scene/library name --------------------------------------------------------- (string is always /0 terminated) \end{verbatim} The file version tag gives the version of the object file specification used. The file type specifies if this is a compiled scene or library file. The scene/library name is the module name given after the 'scene' or the 'library' keyword.


The documentation for this class was generated from the following file:
  • ObjectFileImp.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: