Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
IlsSwMemoryTableFactory Class Reference

This class allows you to use subtypes of the class IlsSwMemoryTable. More...

#include <ilmvsw/memtable.h>

Public Member Functions

virtual IlsSwMemoryTablenewInstance (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 IlsSwMemoryTableFactoryGetSingleton ()
 Returns a reference to the current memory table factory. If no factory has been assigned, this method assigns the default factory.
 
static IlsSwMemoryTableFactoryGetSingletonPtr ()
 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.
 

Detailed Description

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.

See also
IlsSwMemoryTable

Member Function Documentation

◆ newInstance()

IlsSwMemoryTable & IlsSwMemoryTableFactory::newInstance ( IlvDisplay *  d,
const IlsString viewName = IlsString::Null,
const IlsString repTypeName = IlsString::Null,
const IlsString repName = IlsString::Null 
)
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.