This class is the base class for all user-defined types. More...
#include <ilserver/mvvalue.h>
Public Member Functions | |
| virtual | ~IlsMvUserType () |
| Virtual destructor. | |
Controlled Conversion | |
| virtual IlsBoolean | asBoolean (IlsBoolean defaultVal=IlsFalse) const |
Called by IlsMvValue::asBoolean() when the instance of IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual char | asChar (char defaultVal=0) const |
Called by IlsMvValue::asChar() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual long | asLong (long defaultVal=0) const |
Called by IlsMvValue::asLong() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual float | asFloat (float defaultVal=0.0) const |
Called by IlsMvValue::asFloat() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual double | asDouble (double defaultVal=0.0) const |
Called by IlsMvValue::asDouble() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual IlsString | asString (IlsString defaultVal=(char *) 0) const |
Called by IlsMvValue::asString() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual IlsMvRef | asObjectRef (IlsMvRef defaultVal=IlsMvRef()) const |
Called by IlsMvValue::asObjectRef() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined. More... | |
| virtual IlsMvUserType * | asValue (IlsMvDataType typeId, IlsMvUserType *defaultVal=0) const |
| Called by Rogue Wave Server when it needs to convert a user type value into another user type. More... | |
Comparison Operators | |
| virtual IlsBoolean | operator== (const IlsMvUserType &v) const |
Called by the operator IlsMvValue::operator==() when the object and the argument to which it applies contain user-defined type values. More... | |
| virtual IlsBoolean | operator!= (const IlsMvUserType &v) const |
Called by the operator IlsMvValue::operator!=() when the object and the argument to which it applies contain user-defined type values. More... | |
| virtual IlsBoolean | operator< (const IlsMvUserType &) const |
Called by the operator IlsMvValue::operator<() when the object and the argument to which it applies contain user-defined type values. More... | |
| virtual IlsBoolean | operator> (const IlsMvUserType &) const |
Called by the operator IlsMvValue::operator>() when the object and the argument to which it applies contain user-defined type values. More... | |
| virtual IlsBoolean | operator<= (const IlsMvUserType &) const |
Called by the operator IlsMvValue::operator<=() when the object and the argument to which it applies contain user-defined type values. More... | |
| virtual IlsBoolean | operator>= (const IlsMvUserType &) const |
Called by the operator IlsMvValue::operator>=() when the object and the argument to which it applies contain user-defined type values. More... | |
| virtual IlsBoolean | operator! () const |
Called by the operator IlsMvValue::operator!() when the object and the argument to which it applies contain user-defined type values. More... | |
Unparsing | |
| virtual IlsLogfile & | print (IlsLogfile &) const |
| Called in trace mode to display a value whose type is user-defined. More... | |
Protected Member Functions | |
| IlsMvUserType () | |
| The default constructor of the class is protected. | |
Encoding/Decoding | |
| virtual IlsMvMessage & | ilsEncode (IlsMvMessage &) const =0 |
This pure virtual member function is called to encode a value whose type is user-defined in an instance of IlsMvMessage. More... | |
| static IlsMvUserType * | IlsDecode (IlsMvMessage &) |
| This static member function is called by Server to extract a user-type value from a message. More... | |
This class is the base class for all user-defined types.
Library: mvserver
and mvcomp
It enables you to assign such types to runtime attributes of server object types or to runtime attributes of representation object types. See the macro ILS_USERTYPE_DECL()/ILS_USERTYPE_DEF() for details on how to declare such a type.
This class also lets you pass values of any types to functions that take the type IlsMvValue as a parameter, such as the virtual callbacks to member functions in the IlsRpObject class and the function IlsMvComponent::execUserAsyncCallback().
|
virtual |
Called by IlsMvValue::asBoolean() when the instance of IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
|
virtual |
Called by IlsMvValue::asChar() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
|
virtual |
Called by IlsMvValue::asDouble() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
|
virtual |
Called by IlsMvValue::asFloat() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
|
virtual |
Called by IlsMvValue::asLong() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
Reimplemented in MvDateTime.
Called by IlsMvValue::asObjectRef() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
Called by IlsMvValue::asString() when the object of type IlsMvValue to which it applies contains an object whose type is user-defined.
It returns defaultVal.
It can be overridden.
Reimplemented in MvArray, and MvDateTime.
|
virtual |
Called by Rogue Wave Server when it needs to convert a user type value into another user type.
This function returns the null pointer but can be overridden.
|
static |
This static member function is called by Server to extract a user-type value from a message.
It first extracts the name of the user type, then looks for a decoding function declared for this type. This decoding function is implicitly declared by the macro ILS_USERTYPE_DEF() associated with each user type deriving from IlsMvUserType. If the decoding function is found, it is used to extract the user type value. Otherwise, the message is assigned with the failure status (see IlsMvMessage::setFail()).
|
pure virtual |
This pure virtual member function is called to encode a value whose type is user-defined in an instance of IlsMvMessage.
It must be overridden. Declaring the macro ILS_USERTYPE_DECL() in a derived class implicitly overrides this member function.
|
virtual |
Called by the operator IlsMvValue::operator!() when the object and the argument to which it applies contain user-defined type values.
It returns IlsTrue and can be overridden.
|
virtual |
Called by the operator IlsMvValue::operator!=() when the object and the argument to which it applies contain user-defined type values.
It returns IlsTrue and can be overridden.
Reimplemented in MvArray, and MvDateTime.
|
virtual |
Called by the operator IlsMvValue::operator<() when the object and the argument to which it applies contain user-defined type values.
It returns IlsFalse and can be overridden.
Reimplemented in MvDateTime.
|
virtual |
Called by the operator IlsMvValue::operator<=() when the object and the argument to which it applies contain user-defined type values.
It returns IlsFalse and can be overridden.
Reimplemented in MvDateTime.
|
virtual |
Called by the operator IlsMvValue::operator==() when the object and the argument to which it applies contain user-defined type values.
It returns IlsFalse and can be overridden.
Reimplemented in MvArray, and MvDateTime.
|
virtual |
Called by the operator IlsMvValue::operator>() when the object and the argument to which it applies contain user-defined type values.
It returns IlsFalse and can be overridden.
Reimplemented in MvDateTime.
|
virtual |
Called by the operator IlsMvValue::operator>=() when the object and the argument to which it applies contain user-defined type values.
It returns IlsFalse and can be overridden.
Reimplemented in MvDateTime.
|
virtual |
Called in trace mode to display a value whose type is user-defined.
It as no effect but can be overridden.
Reimplemented in MvDateTime.