Server
API Reference Guide
Product Documentation:

Rogue Wave Server
Documentation Home
List of all members | Classes | Friends

This class is internally used by Rogue Wave Server to exchange interaction messages between an object server and application components. More...

#include <ilserver/mvmsg.h>

Inheritance diagram for IlsMvMessage:
IlsMvUserType

Classes

struct  SvMsg
 This structure enables you to specify a message identifier, a message level and a message description. More...
 

Public Member Functions

Insertion operators

These operators insert the item passed as argument to the message and returns this message.

IlsMvMessageoperator<< (char)
 
IlsMvMessageoperator<< (unsigned char)
 
IlsMvMessageoperator<< (const char *)
 
IlsMvMessageoperator<< (const IlsString &)
 
IlsMvMessageoperator<< (short)
 
IlsMvMessageoperator<< (unsigned short)
 
IlsMvMessageoperator<< (int)
 
IlsMvMessageoperator<< (unsigned int)
 
IlsMvMessageoperator<< (long)
 
IlsMvMessageoperator<< (unsigned long)
 
IlsMvMessageoperator<< (float)
 
IlsMvMessageoperator<< (double)
 
IlsMvMessageoperator<< (const IlsMsgBuffer &)
 
IlsMvMessageoperator<< (const IlsMvMessage &)
 
Extraction operators

These operators extract from the message a value whose type is given by their argument. The value is then assigned to this argument.

The message is returned.

IlsMvMessageoperator>> (char &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (unsigned char &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (short &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (unsigned short &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (int &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (unsigned int &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (long &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (unsigned long &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (float &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (double &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (IlsString &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (char *&)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (IlsMsgBuffer &)
 Extract a string value from the message. More...
 
IlsMvMessageoperator>> (IlsMvMessage &)
 Extract a string value from the message. More...
 
Error handling
IlsBoolean fail ()
 Returns the failure status of the IlsMvMessage.
 
- Public Member Functions inherited from IlsMvUserType
virtual ~IlsMvUserType ()
 Virtual destructor.
 
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 IlsMvUserTypeasValue (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...
 
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...
 
virtual IlsLogfileprint (IlsLogfile &) const
 Called in trace mode to display a value whose type is user-defined. More...
 
virtual IlsMvMessageilsEncode (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 Public Member Functions

Message Handling

These are "shortcut" functions, respectively equivalent to writing the following code :

IlsMvMessage::SvMsg(IlsMvMessage::AppliInfoId,
IlsMvMessage::SvMsg::MvInfo,
msg);
IlsMvMessage::SvMsg(IlsMvMessage::AppliWarnId,
IlsMvMessage::SvMsg::MvWarning,
msg);
IlsMvMessage::SvMsg(IlsMvMessage::AppliErrorId,
IlsMvMessage::SvMsg::MvError,
msg);
static SvMsg AppliInfo (const IlsString &)
 
static SvMsg AppliWarning (const IlsString &)
 
static SvMsg AppliError (const IlsString &)
 
- Static Public Member Functions inherited from IlsMvUserType
static IlsMvUserTypeIlsDecode (IlsMvMessage &)
 This static member function is called by Server to extract a user-type value from a message. More...
 

Friends

class IlsMvComponentItf
 

Additional Inherited Members

- Protected Member Functions inherited from IlsMvUserType
 IlsMvUserType ()
 The default constructor of the class is protected.
 

Detailed Description

This class is internally used by Rogue Wave Server to exchange interaction messages between an object server and application components.

Library: mvserver
and mvcomp

It is usually transparent to the user. However, when a subclass of IlsMvUserType is declared, you have to implement the function that lets you insert this type into an IlsMvMessage and extract it from an IlsMvMessage.

See also
IlsMvUserType, IlsMvProcess.

Member Function Documentation

◆ operator>>() [1/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( char &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [2/14]

IlsMvMessage& IlsMvMessage::operator>> ( char *&  )

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [3/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( double &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [4/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( float &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [5/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( IlsMsgBuffer &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [6/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( IlsMvMessage v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [7/14]

IlsMvMessage& IlsMvMessage::operator>> ( IlsString )

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [8/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( int &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [9/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( long &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [10/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( short &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [11/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( unsigned char &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [12/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( unsigned int &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [13/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( unsigned long &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

◆ operator>>() [14/14]

ILSIMPORT_MVSVR IlsMvMessage & IlsMvMessage::operator>> ( unsigned short &  v)

Extract a string value from the message.

The string is assigned to the argument passed. It must be deallocated by the user.

IlsMvMessage::SvMsg
This structure enables you to specify a message identifier, a message level and a message description...
Definition: mvmsg.h:208