#include <PseudoNew1P.h>
Collaboration diagram for PseudoNew1P:
Public Methods | |
PseudoNew1P (void *libFunPtr) | |
Constructor. It takes a void funtion pointer as returned e.g. by dlsym(). More... | |
PseudoNew1P (void) | |
Default constructor. More... | |
virtual | ~PseudoNew1P () |
void | bind (void *libFunPtr) |
T1 * | create (T2 par) |
bool | isValid () |
Did we really find the pseudo constructor function in the library? More... | |
Protected Attributes | |
T1 *(* | newMethodPtr )(T2) |
// declaration extern "C" { aTest *makeNew(char *name); } // implementation aTest *makeNew(name) { return new shTest(name); }
Definition at line 28 of file PseudoNew1P.h.
|
Definition at line 31 of file PseudoNew1P.h. References newMethodPtr. |
|
Definition at line 35 of file PseudoNew1P.h. References newMethodPtr. |
|
Definition at line 38 of file PseudoNew1P.h. |
|
Binding method (used to initialize an instance created with the default constructor. It takes a void function pointer as returned e.g. by dlsym(). Definition at line 42 of file PseudoNew1P.h. References newMethodPtr. |
|
Create a new instance of the class by calling the pseudo contructor. The object will (very likely) be created in dynamic memory, thus the user is responsible for deletion. Definition at line 49 of file PseudoNew1P.h. |
|
Definition at line 53 of file PseudoNew1P.h. References newMethodPtr. |
|
Referenced by bind, isValid, and PseudoNew1P. |