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

ObjectFileExportTable Class Reference

The class ObjectFileExportTable contains the information needed to allow libraries to export global variables, functions and class declarations. More...

#include <ObjectFileImp.h>

Inheritance diagram for ObjectFileExportTable

Inheritance graph
[legend]
Collaboration diagram for ObjectFileExportTable:

Collaboration graph
[legend]
List of all members.

Public Types

typedef DataChunk inherited

Public Methods

 ObjectFileExportTable ()
void addDataEntry (const string &sName,const Type &type,unsigned long bssoffset)
void addFuncEntry (const string &sName,unsigned long codeoffset)
virtual unsigned long getStreamSize ()
virtual unsigned long getStreamChunk ()
virtual void write (OutputStreamWriterNDR &os)
virtual void read (InputStreamWriterNDR &is)

Protected Methods

void readExportEntry (InputStreamWriterNDR &is)

Protected Attributes

std::vector<ExportEntry*> table

Detailed Description

The class ObjectFileExportTable contains the information needed to allow libraries to export global variables, functions and class declarations.

The last one isn't yet supported but will be in the future. This information is mandatory for library, 'cause a library without any exports doesn't to make much sense at all.

ObjectFile -- EXPORTTABLE (1 per file, for libraries mandatory, scenes doesn't contain one) \begin{verbatim} Offset Size Type Comment --------------------------------------------------------- 0 4 Byte fourcc 'EXPT' (EXPort Table) 4 4 Byte int32 size of the chunk 8 4 Byte int32 number of symbols following 12 x Byte int32 data organized in subchunks --------------------------------------------------------- \end{verbatim}

The following subchunks are contained in the export table data area: 'VAR_' for exported global variables 'FUNC' for exported global functions (not yet fully implemented) 'DECL' declarations for new classes (not yet supported)

GlobalVariables 'VAR_': \begin{verbatim} Offset Size Type Comment --------------------------------------------------------- 0 4 Byte fourcc 'VAR_' (VARiable) 4 4 Byte int32 size of the chunk 8 x Byte string name of the variable 8+x y Byte type encoded type of the variable --------------------------------------------------------- (string is always /0 terminated) \end{verbatim} GlobalVariables 'FUNC': \begin{verbatim} Offset Size Type Comment --------------------------------------------------------- 0 4 Byte fourcc 'FUNC' (VARiable) 4 4 Byte int32 size of the chunk 8 x Byte string name of the function 8+x y Byte pmlist encoded types of return value and parameters --------------------------------------------------------- (string is always /0 terminated) \end{verbatim}


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: