Ogre::DynLib Class Reference
Core » General

Resource holding data about a dynamic library. More...

`#include <OgreDynLib.h>`

Inheritance diagram for Ogre::DynLib:
[legend]

## Public Member Functions

| DynLib (const String &name)
| Default constructor - used by DynLibManager. More...
| ~DynLib ()
| Default destructor. More...
const String & | getName (void) const
| Get the name of the library. More...
void * | getSymbol (const String &strName) const throw ()
| Returns the address of the given symbol from the loaded library. More...
void | load ()
| Load the library. More...
void | operator delete (void *ptr)
void | operator delete (void *ptr, void *)
void | operator delete (void *ptr, const char *, int, const char *)
void | operator delete[] (void *ptr)
void | operator delete[] (void *ptr, const char *, int, const char *)
void * | operator new (size_t sz, const char *file, int line, const char *func)
| operator new, with debug line info More...
void * | operator new (size_t sz)
void * | operator new (size_t sz, void *ptr)
| placement operator new More...
void * | operator new[] (size_t sz, const char *file, int line, const char *func)
| array operator new, with debug line info More...
void * | operator new[] (size_t sz)
void | unload ()
| Unload the library. More...

## Protected Member Functions

String | dynlibError (void)
| Gets the last loading error. More...

## Protected Attributes

DYNLIB_HANDLE | mInst
| Handle to the loaded library. More...
String | mName

## Detailed Description

Resource holding data about a dynamic library.

Remarks
  This class holds the data required to get symbols from libraries loaded at run-time (i.e. from DLL's for so's)

Author
  Adrian Cearn„u (cearn.nosp@m.y@ce.nosp@m.arny..nosp@m.ro)

Since
  27 January 2002

Definition at line 84 of file OgreDynLib.h.

## Constructor & Destructor Documentation

## DynLib()

Ogre::DynLib::DynLib | ( | const String & | name | ) |

Default constructor - used by DynLibManager.

Warning
  Do not call directly

## ~DynLib()

Ogre::DynLib::~DynLib | ( |  | ) |

Default destructor.

## Member Function Documentation

## dynlibError()

String Ogre::DynLib::dynlibError | ( | void |  | ) |

protected

Gets the last loading error.

## getName()

const String& Ogre::DynLib::getName | ( | void |  | ) | const

Get the name of the library.

Definition at line 108 of file OgreDynLib.h.

## getSymbol()

void* Ogre::DynLib::getSymbol | ( | const String & | strName | ) | const
throw | ( |
| ) |  |

Returns the address of the given symbol from the loaded library.

Parameters

  strName | The name of the symbol to search for

Returns
  If the function succeeds, the returned value is a handle to the symbol.

  If the function fails, the returned value is NULL.

## load()

void Ogre::DynLib::load | ( |  | ) |

Load the library.

## operator delete() [1/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) |

inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

## operator delete() [2/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | void * |
| ) |  |

inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

## operator delete() [3/3]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [1/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) |

inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

## operator delete[]() [2/2]

template<class Alloc >

void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr,
|  | const char * | ,
|  | int | ,
|  | const char * |
| ) |  |

inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

## operator new() [1/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

## operator new() [2/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) |

inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

## operator new() [3/3]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz,
|  | void * | ptr
| ) |  |

inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

## operator new[]() [1/2]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz,
|  | const char * | file,
|  | int | line,
|  | const char * | func
| ) |  |

inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

## operator new[]() [2/2]

template<class Alloc >

void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) |

inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

## unload()

void Ogre::DynLib::unload | ( |  | ) |

Unload the library.

## Member Data Documentation

## mInst

DYNLIB_HANDLE Ogre::DynLib::mInst

protected

Handle to the loaded library.

Definition at line 126 of file OgreDynLib.h.

## mName

String Ogre::DynLib::mName

protected

Definition at line 87 of file OgreDynLib.h.

The documentation for this class was generated from the following file:

- OgreDynLib.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.