IlsSwMemoryTableFactory
Category
Dynamic view-related class (Server/Views integration)
Inheritance Path
IlsSwMemoryTableFactory
Description
This class allows you to use subtypes of the class IlsSwMemoryTable.
You do this by deriving the IlsSwMemoryTableFactory and implementing the function newInstance to return the appropriate subtype. Use the member function IlsSwMemoryTableFactory::SetSingleton to set a factory.
Library
Synopsis
class IlsSwMemoryTableFactory{
public:
(IlvDisplay*,
const IlsString& viewName = IlsString::Null,
const IlsString& repTypeName = IlsString::Null,
const IlsString& repName = IlsString::Null);
};
Member Functions
[static] IlsSwMemoryTableFactory& GetSingleton();
This static member function returns a reference to the current memory table factory. If no factory has been assigned, this method assigns the default factory.
[static] IlsSwMemoryTableFactory* GetSingletonPtr();
This static member function returns a pointer to the current IlsSwMemoryTable singleton. If no singleton has been declared yet, it returns the null pointer.
[static] void SetSingleton(IlsSwMemoryTableFactory* f);
This static member function sets the IlsSwMemoryTableFactory to the supplied parameter.
[virtual] IlsSwMemoryTable& newInstance
(IlvDisplay*,
const IlsString& viewName = IlsString::Null,
const IlsString& repTypeName = IlsString::Null,
const IlsString& repName = IlsString::Null);
This virtual member function is 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.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.