ImqProcess C++ class

This class encapsulates an application process (an IBM® MQ object of type MQOT_PROCESS) that can be triggered by a trigger monitor.

Figure 1. ImqProcess class
A Booch class diagram showing the ImqProcess class and its parent class, ImqObject.

Object attributes

application id
The identity of the application process. This attribute is read-only.
application type
The type of the application process. This attribute is read-only.
environment data
The environment information for the process. This attribute is read-only.
user data
User data for the process. This attribute is read-only.

Constructors

ImqProcess( );
The default constructor.
ImqProcess( const ImqProcess & process );
The copy constructor. The ImqObject open status is FALSE.
ImqProcess( const char * name );
Sets the ImqObject name.

Object methods (public)

void operator = ( const ImqProcess & process );
Performs a close if necessary, and then copies instance data from process. The ImqObject open status will be FALSE.
ImqBoolean applicationId ( ImqString & id );
Provides a copy of the application id. It returns TRUE if successful.
ImqString applicationId ( );
Returns the application id without any indication of possible errors.
ImqBoolean applicationType ( MQLONG & type );
Provides a copy of the application type. It returns TRUE if successful.
MQLONG applicationType ( );
Returns the application type without any indication of possible errors.
ImqBoolean environmentData ( ImqString & data );
Provides a copy of the environment data. It returns TRUE if successful.
ImqString environmentData ( );
Returns the environment data without any indication of possible errors.
ImqBoolean userData ( ImqString & data );
Provides a copy of the user data. It returns TRUE if successful.
ImqString userData ( );
Returns the user data without any indication of possible errors.