Server
API Reference Guide
Product Documentation:

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

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 IlsSwDataSourceFactoryGetSingleton ()
 Returns a reference to the IlsSwDataSource singleton. It creates a default factory if none was set.
 
static IlsSwDataSourceFactoryGetSingletonPtr ()
 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...
 

Detailed Description

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.

See also
IliDataSource (in the Rogue Wave Views/Data Access documentation).

Member Function Documentation

◆ newInstance()

IliMemoryDataSource & IlsSwDataSourceFactory::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 
)
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.

◆ SetSingleton()

static void IlsSwDataSourceFactory::SetSingleton ( IlsSwDataSourceFactory )
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.