Server
API Reference Guide
Product Documentation:

Visualization Server
Documentation Home
List of all members | Public Member Functions
IlsDynObjectFactory Class Reference

This factory allows you to instantiate your own dynamic object instead of using the class IlsDynObject. More...

#include <ilserver/dynobj.h>

Public Member Functions

IlsDynAttributeFactorygetAttributeFactory () const
 Returns the attribute factory.
 
IlsDynRelationFactorygetRelationFactory () const
 This member function returns the relation factory.
 
virtual IlsDynAttributesnewAttributes (IlsDynObject &obj)
 Called by Server when building a new collection of dynamic attributes for the object obj. More...
 
virtual IlsDynObjectnewInstance (const IlsObjectType *objType, const IlsString &id=IlsString::Null)
 Override this member function to instantiate your own dynamic objects.
 
virtual IlsDynRelationsnewRelations (IlsDynObject &obj)
 Called by Server when building a new collection of dynamic relations for the object obj. More...
 
void setAttributeFactory (IlsDynAttributeFactory &f)
 Installs a new attribute factory. More...
 
void setRelationFactory (IlsDynRelationFactory &f)
 Installs a new relation factory. More...
 

Detailed Description

This factory allows you to instantiate your own dynamic object instead of using the class IlsDynObject.

Library: dynmvsvr

Your dynamic object class must inherit from IlsDynObject. By default, Rogue Wave Server instantiates IlsDynObject objects.

See also
IlsDynModelInterpreter, IlsDynMvServer, IlsDynObject.

Member Function Documentation

◆ newAttributes()

virtual IlsDynAttributes* IlsDynObjectFactory::newAttributes ( IlsDynObject obj)
virtual

Called by Server when building a new collection of dynamic attributes for the object obj.

The default implementation builds a subclass of IlsDynAttributes depending on whether the application allows updating the model or not.

See also
IlsDynMvServer::CanUpdateModel(IlsBoolean).

◆ newRelations()

virtual IlsDynRelations* IlsDynObjectFactory::newRelations ( IlsDynObject obj)
virtual

Called by Server when building a new collection of dynamic relations for the object obj.

The default implementation builds a subclass of IlsDynRelations depending on whether the application allows updating the model or not.

See also
IlsDynMvServer::CanUpdateModel(IlsBoolean).

◆ setAttributeFactory()

void IlsDynObjectFactory::setAttributeFactory ( IlsDynAttributeFactory f)

Installs a new attribute factory.

Rogue Wave Server is responsible for deleting it at the end of the application.

◆ setRelationFactory()

void IlsDynObjectFactory::setRelationFactory ( IlsDynRelationFactory f)

Installs a new relation factory.

Rogue Wave Server is responsible for deleting it at the end of the application.