IlsDynRelations
 
IlsDynRelations
Category 
Dynamic modeling class
Inheritance Path 
IlsDynRelations
Description 
This abstract class is the base class for the collection of relations of a dynamic object. It provides the API used by Rogue Wave® Server to create or access dynamic relations. If you choose to subclass this class, the member function IlsDynObjectFactory::newRelations must create an instance of your subclass.
Library 
<dynmvsvr>
Header File
#include <ilserver/dynimpl.h>
Synopsis 
class IlsDynRelations
{
public:
 
IlsDynRelations(IlsDynObject* holder);
 
IlsDynObject* getHolder() const;
virtual IlsDynRelation* getDynRelation
(const IlsDynObject& holder,
const IlsRelationDef&) const;
virtual void addRelation(const IlsRelationDef&,
IlsDynRelation&);
virtual void rmRelation(const IlsRelationDef&,
IlsBoolean del = IlsTrue);
virtual IlsDynRelation* newRelation
(IlsDynObject&,
const IlsRelationDef&);
virtual int getCount() const;
};
Constructor 
IlsDynRelations(IlsDynObject* holder);
This constructor receives the holder object for the collection to be built.
Member Functions 
IlsDynObject* getHolder() const;
This member function returns the holder of the collection. This function should be overriden.
[virtual] IlsDynRelation* getDynRelation
(const IlsDynObject& holder,
const IlsRelationDef&) const;
This virtual member function returns a dynamic relation, given its definition and its holder. This function should be overriden.
[virtual] void addRelation(const IlsRelationDef&, IlsDynRelation&);
This virtual member function adds a dynamic relation to the collection. This function should be overriden.
[virtual] void rmRelation(const IlsRelationDef&, IlsBoolean del = IlsTrue);
This virtual member function removes a dynamic relation from the collection. If the argument del is IlsTrue, the dynamic relation must be deleted. This function should be overriden.
[virtual] IlsDynRelation* newRelation(IlsDynObject&, const IlsRelationDef&);
This virtual member function is called by Server when a new relation must be built. The default implementation invokes the methods of the class IlsDynRelationFactory and calls addRelation.
[virtual] int getCount() const;
This virtual member function returns the number of dynamic relations stored in the collection.
See Also 
IlsDynRelation, IlsDynRelationFactory

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.