Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

ModuleStatic Class Reference

#include <module.h>

Inheritance diagram for ModuleStatic:

Inheritance graph
[legend]
Collaboration diagram for ModuleStatic:

Collaboration graph
[legend]
List of all members.

Detailed Description

Module abstraction layer for statically linked modules.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 ModuleStatic (const HashString &rstrName)
virtual ~ModuleStatic ()
virtual bool IsValid () const
virtual bool IsStatic () const
virtual ModSymbol LookupSymbol (const HashString &rstrSymbol)
const HashStringGetName () const
void IncRef ()
void DecRef ()
int GetRefCount () const

Public Attributes

HashTable< ModSymbol > m_Symbols

Protected Attributes

ModuleManagerm_pkManager
HashString m_strName


Constructor & Destructor Documentation

ModuleStatic const HashString rstrName  ) 
 

Initialize library layer

Parameters:
rstrName Library name

virtual ~ModuleStatic  )  [virtual]
 


Member Function Documentation

virtual bool IsValid  )  const [inline, virtual]
 

Returns:
true if module is loaded successfully, false if not (not existing or missing symbols)

Implements Module.

virtual bool IsStatic  )  const [inline, virtual]
 

Returns:
true if module is statically loaded, false if dynamic

Implements Module.

virtual ModSymbol LookupSymbol const HashString rstrSymbol  )  [virtual]
 

Query library for symbol

Parameters:
rstrSymbol Symbol name
Returns:
Symbol

Implements Module.

const HashString& GetName  )  const [inline, inherited]
 

Returns:
Module name

void IncRef  )  [inline, inherited]
 

Increase reference count

void DecRef  )  [inline, inherited]
 

Decrease reference count and garbage collect if 0

int GetRefCount  )  const [inline, inherited]
 

Returns:
Current reference count


Member Data Documentation

HashTable< ModSymbol > m_Symbols
 

Available symbols

ModuleManager* m_pkManager [protected, inherited]
 

Module manager

HashString m_strName [protected, inherited]
 

Module name


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:12 2004 for NeoEngine by doxygen 1.3.5