This class allows you to use subtypes of the class IliMemoryDataSource
.
More...
#include <ilmvsw/memtable.h>
Public Member Functions | |
virtual IliMemoryDataSource & | newInstance (IlvDisplay *d, const IlvPoint &at, IlvUShort thickness=IlvDefaultGadgetThickness, IlvPalette *palette=0, const IlsString &viewName=IlsString::Null, const IlsString &repTypeName=IlsString::Null, const IlsString &repName=IlsString::Null) |
Creates a new instance of a memory data source. More... | |
Static Public Member Functions | |
static IlsSwDataSourceFactory & | GetSingleton () |
Returns a reference to the IlsSwDataSource singleton. It creates a default factory if none was set. | |
static IlsSwDataSourceFactory * | GetSingletonPtr () |
Returns a pointer to the current IlsSwDataSource singleton. If no singleton has been yet declared, it returns the null pointer. | |
static void | SetSingleton (IlsSwDataSourceFactory *) |
Sets the IlsSwDataSourceFactory to the supplied parameter. More... | |
This class allows you to use subtypes of the class IliMemoryDataSource
.
Library: mvsw
You have to derive the IlsSwDataSourceFactory
and implement the member function newInstance()
to return the appropriate subtype. Use the member function IlsSwDataSourceFactory::SetSingleton()
to set a factory.
IliDataSource
(in the Rogue Wave Views/Data Access documentation).
|
virtual |
Creates a new instance of a memory data source.
The name of the view, as well as the name and type of the representation, are provided so that the type of memory data source can be chosen depending on the view that will use it.
|
static |
Sets the IlsSwDataSourceFactory
to the supplied parameter.
If you do not set any instances of IlsSwDataSourceFactory
, the instances of IliDataSource
that were read from the .ilv file are used. Otherwise, they are replaced with the ones generated by your factory.