sxComponentLibrary Class Reference

Component library loader. More...

#include <sxComponentLibrary.h>

Inheritance diagram for sxComponentLibrary:


List of all members.

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
sxComponentCreate (int type, bool loadMode) const
 create component
sxComponentCreate (const QString &lname, int type, bool loadMode) const

Protected Attributes

QString xLibFuncPrefix

Detailed Description

Component library loader.

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")

Member Function Documentation

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().

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

Generated on Wed Dec 17 19:30:47 2008 for xBCI API by  doxygen