#include <Plugin.h>
Inheritance diagram for clawsoft::Plugin:
Public Methods | |
Plugin () | |
Default constructor this one does nothing but a few initializations on the handle and loaded variables. | |
Plugin (const String &plName) | |
This constructor initializes on the handle and loaded variables, also it initializes the name of the dso. | |
void | load () |
Loads the dso into memory, this method requires the use of the second constructor, not the default one if you've used the default then you shold probably use the another load method. | |
void | load (String plName) |
Loads the dso defined by plName and updates the contents of the dso variable name. | |
void | unload () |
Unloads the dso from memory. | |
void * | getSymbol (const String &sym) |
Use this method whenever you want to obtain a symbol from the dso. | |
String & | getDSOName () |
This method returns the name of the dso itself. | |
const char * | getClassName () |
Returns the name of the current class. | |
Static Public Methods | |
int | installedCPUs () |
This will return how many CPUs are installed in the system. | |
double | cpuSpeed () |
This will return the CPU speed in megahertz. | |
int | totalMemory () |
Will return the total amount of system memory. | |
int | freeMemory () |
Will return the total amount of free system memory. | |
void | usleep (Uint32 usec) |
Will freeze the software for usec microseconds. | |
Protected Methods | |
void | setClassName (const char *n) |
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging. | |
Protected Attributes | |
String | dso |
Holds the filename of the shared object itself. | |
bool | loaded |
Tells if the object is loaded or not. | |
void * | handle |
This is the handle value as returned by the dlopen function. |
|
Default constructor this one does nothing but a few initializations on the handle and loaded variables.
|
|
This constructor initializes on the handle and loaded variables, also it initializes the name of the dso.
|
|
This will return the CPU speed in megahertz.
|
|
Will return the total amount of free system memory.
|
|
Returns the name of the current class.
|
|
This method returns the name of the dso itself.
|
|
Use this method whenever you want to obtain a symbol from the dso.
|
|
This will return how many CPUs are installed in the system.
|
|
Loads the dso defined by plName and updates the contents of the dso variable name.
|
|
Loads the dso into memory, this method requires the use of the second constructor, not the default one if you've used the default then you shold probably use the another load method.
|
|
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.
|
|
Will return the total amount of system memory.
|
|
Unloads the dso from memory.
|
|
Will freeze the software for usec microseconds.
|
|
Holds the filename of the shared object itself.
|
|
This is the handle value as returned by the dlopen function.
|
|
Tells if the object is loaded or not.
|
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: