Tobj abstract base class for all classes in the SmartSockets C++ class library
The Tobj class unifies error handling by managing a status flag on behalf of derived classes.
None
TipcConn, TipcMon, TipcMonClient, TipcMonServer, TipcMsg, TipcMt
This code example checks a status condition on a TipcMsg class object in two ways:
#include <rtworks/cxxipc.hxx> int main() { cout << "Create the message." << endl; TipcMsg msg(T_MT_NUMERIC_DATA);// FIRST way to check error flag managed in Tobj base class
if (!msg) {// error
}// SECOND way to check error flag managed in Tobj base class
if (msg.Status() == FALSE) {// error
} }
TIBCO SmartSockets™ cxxipc Class Library Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |