#include <sxComponentLibrary.h>
Public Member Functions | |
sxComponentLibrary (const QString &libname) | |
bool | Load (const QString &libname) |
QString | Name () const |
QString | VersionString () const |
int | Version () const |
QString | Description () const |
bool | IsValid () const |
void | SetManifestFileName (const QString &fname) |
QString | ManifestFileName () const |
sxComponent * | Create (int type, bool loadMode) const |
create component | |
sxComponent * | Create (const QString &lname, int type, bool loadMode) const |
Protected Attributes | |
QString | xLibFuncPrefix |
Each component implemented in the dynamic libraries. The libraries must defined function for allocating component. All the function must be defined as extern "C" Here is the function that should be implemented in the libraries.
For libraries name, if function lib_name is not defined, name of the dynamic libraries will be used (e.g. math.dll, the name will be "math")
sxComponent * sxComponentLibrary::Create | ( | int | type, | |
bool | loadMode | |||
) | const |
create component
id | component id to be create | |
loadMode | set to true when create component while loading design file |
References sxComponent::ConfigurePorts(), sxComponent::OnCreate(), sxComponent::OnDestroy(), and sxComponent::SetLibraryName().
Referenced by sxNetwork::CreateComponent().