This class allows you to use subtypes of the class IlsSwMemoryTable
.
More...
#include <ilmvsw/memtable.h>
Public Member Functions | |
virtual IlsSwMemoryTable & | newInstance (IlvDisplay *d, const IlsString &viewName=IlsString::Null, const IlsString &repTypeName=IlsString::Null, const IlsString &repName=IlsString::Null) |
Called every time a new instance of a memory table is required. More... | |
Static Public Member Functions | |
static IlsSwMemoryTableFactory & | GetSingleton () |
Returns a reference to the current memory table factory. If no factory has been assigned, this method assigns the default factory. | |
static IlsSwMemoryTableFactory * | GetSingletonPtr () |
Returns a pointer to the current IlsSwMemoryTable singleton. If no singleton has been declared yet, it returns the null pointer. | |
static void | SetSingleton (IlsSwMemoryTableFactory *) |
Sets the IlsSwMemoryTableFactory to the supplied parameter. | |
This class allows you to use subtypes of the class IlsSwMemoryTable
.
Library: mvsw
You do this by deriving the IlsSwMemoryTableFactory
and implementing the function newInstance()
to return the appropriate subtype. Use the member function SetSingleton()
to set a factory.
IlsSwMemoryTable
|
virtual |
Called every time a new instance of a memory table is required.
The behavior of the default factory is to create an instance of IlsSwMemoryTable
using the display parameter. The current view name, representation type name, and representation name are provided in case you want to provide a special memory table for a particular view or representation.