IlsSvRef
Category
Dynamic view-related class (server side)
Inheritance Path
IlsSvRef
Description
This class encapsulates a pointer to a server object along with its type, in a non-typed way. Instances of
IlsSvRef are meant to be encapsulated in an
IlsMvValue value.
IlsSvRef objects are used by the Rogue Wave Views Script integration to call member functions that have been declared to the Sserver model interpreter with a Server type as a parameter.
IlsMvValue values of this type can be exclusively used on the server side. They cannot be put into a
IlsMvMessage message and cannot be exchanged between server and components.
See section Invoking Member Functions from a Script in Chapter Rogue Wave Views Script Integration of the Rogue Wave Server User’s Manual for more information.
Library
Synopsis
class IlsSvRef{
public:
IlsAny getObject() const;
IlsBoolean isNull() const;
IlsString getTypeName() const;
friend IlsBoolean operator ==(const IlsSvRef& r1,
const IlsSvRef& r2);
};
Member Functions
IlsAny getObject() const;
This member function returns a pointer to the server object as a non-typed pointer. If this reference stores a dynamic object, you can use IlsDynObject::Narrow to cast it to an IlsDynObject pointer.
IlsBoolean isNull()const;
This member function returns IlsTrue if the object does not reference any server object.
IlsString getTypeName() const;
This member function returns the type name of the stored non-typed pointer.
Operator
friend IlsBoolean operator ==(const IlsSvRef& r1,
const IlsSvRef& r2);
This comparison operator returns IlsTrue if the two references point to the same server object.
See Also
Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.