|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CObject: public CInterface { public: CObject(); virtual ~CObject(); public: virtual void Get( const CString &strProperty, CValue &value) = 0; virtual void Put( const CString &strProperty, const CValue &value) = 0; virtual void Call( const CString &strMethod, int nArg, const CValue *pArg, CValue &result) = 0; };
The abstract interface to SOM objects.
This class provides few functions designed to access object properties and to call object methods.
CValue
Constructor/Destructor Summary | |
CObject
();
����������Constructs the object. |
|
~CObject
();
����������Destroys the object. |
Function Summary | |
void
|
Get
(const CString &strProperty, CValue &value);
����������Returns a value of the specified property of this object. |
void
|
Put
(const CString &strProperty, const CValue &value);
����������Assigns the new value to the specified property of this object. |
void
|
Call
(const CString &strMethod, int nArg, const CValue *pArg, CValue &result);
����������Calls the specified method of this object with the specified list of arguments. |
Constructor/Destructor Detail |
CObject();
Constructs the object.
virtual ~CObject();
Destroys the object.
Function Detail |
virtual void Get( const CString &strProperty, CValue &value) = 0;
Returns a value of the specified property of this object.
An exception must be thrown if this object has no specified property.
strProperty
- the property namevalue
- on return, the value of the
specified propertyvirtual void Put( const CString &strProperty, const CValue &value) = 0;
Assigns the new value to the specified property of this object.
If this object had no specified property before, the result of calling this function is platform-dependent.
strProperty
- the property namevalue
- the new property valuevirtual void Call( const CString &strMethod, int nArg, const CValue *pArg, CValue &result) = 0;
Calls the specified method of this object with the specified list of arguments.
The actual values for method arguments
are passed using parameters
nArg
and
pArg
. The
nArg
contains the number
of arguments, while
pArg
points to the array
of argument values. If the method does not require arguments,
then
nArg
must be
0
, and
pArg
may be set to
NULL
.
On return, the
result
parameter is assigned
the value returned by the method. If the method does not
return any value, the
result
must be assigned
type
typeVoid
.
An exception must be thrown if this object does not implement the specified method.
strMethod
- the method namenArg
- the number of argumentspArg
- the array of argument valuesresult
- on return, the value containing
the result of the method call
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |