IlsDynAttribute
 
IlsDynAttribute
Category 
Dynamic modeling class
Inheritance Path 
IlsDynAttribute
Description 
This abstract class defines the interface of dynamic attributes. The various subclasses implement the methods according to their semantics.
This class includes the following list of predefined subtypes, used to provide a Server implementation of dynamic attributes:
*IlsDynSimpleAttribute: encapsulates a simple attribute of type IlsMvValue.
*IlsDynEntry: encapsulates a server entry data member.
*IlsDynDerived: encapsulates a server derived data member.
Library 
<dynmvsvr>
Header File
#include <ilserver/dynobj.h>
Synopsis 
class IlsDynAttribute
{
public:
IlsDynAttribute(const IlsAttributeDef& attr);
 
virtual IlsMvValue getValue() const;
virtual IlsBoolean setValue(const IlsMvValue& v);
 
virtual IlsBoolean isModified() const;
 
virtual IlsMvDataType getValueType() const;
virtual void subscribe();
virtual void unsubscribe();
};
Constructor 
IlsDynAttribute(const IlsAttributeDef& attr);
This constructor creates an instance of a dynamic attribute.
Member Functions 
[virtual] IlsMvValue getValue() const;
This virtual member function returns the value of the dynamic attribute as an instance of IlsMvValue.
[virtual] IlsBoolean setValue(const IlsMvValue& v);
This virtual member function sets the value of the dynamic attribute. It should return IlsFalse if assignment is not possible.
[virtual] IlsBoolean isModified() const;
This virtual member function returns IlsTrue if the dynamic attribute has been modified since the last notification cycle. This function is called by Rogue Wave® Server during the notification cycle.
[virtual] IlsMvDataType getValueType() const;
This virtual member function returns the type of the dynamic attribute.
[virtual] void subscribe();
This virtual member function is called by Rogue Wave Server during the notification cycle. The function should increase the subscription counter for the dynamic attribute. The function is used only for derived attributes to increase the eargerness. See the class IlsDerived and the static member function IlsDynModelInterpreter::DeclDerived for more information.
[virtual] void unsubscribe();
This virtual member function is called by Rogue Wave Server during the notification cycle. This function should decrease the subscription counter for the dynamic attribute. The function is used only for derived attributes to decrease the eargerness. See the class IlsDerived and the static member function IlsDynModelInterpreter::DeclDerived for more information.
See Also 
IlsDynModelInterpreter, IlsDynObject, IlsDynRelation

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