⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtig.cc

📁 certi-SHM-3.0.tar 不错的开源的分布式方针软件 大家多多支持 他是linux
💻 CC
📖 第 1 页 / 共 2 页
字号:
        CPY_NOT_NULL(e);        rep.exception = e_AttributeAlreadyBeingAcquired ;    }    catch (AttributeAlreadyBeingDivested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeAlreadyBeingDivested ;    }    catch (AttributeDivestitureWasNotRequested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeDivestitureWasNotRequested ;    }    catch (AttributeAcquisitionWasNotRequested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeAcquisitionWasNotRequested ;    }    catch (AttributeNotDefined &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeNotDefined ;    }    catch (AttributeNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeNotKnown ;    }    catch (AttributeNotOwned &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeNotOwned ;    }    catch (AttributeNotPublished &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeNotPublished ;    }    catch (AttributeNotSubscribed &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_AttributeNotSubscribed ;    }    catch (ConcurrentAccessAttempted &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ConcurrentAccessAttempted ;    }    catch (CouldNotDiscover &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_CouldNotDiscover ;    }    catch (CouldNotOpenRID &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_CouldNotOpenRID ;    }    catch (CouldNotRestore &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_CouldNotRestore ;    }    catch (DeletePrivilegeNotHeld &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_DeletePrivilegeNotHeld ;    }    catch (ErrorReadingRID &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ErrorReadingRID ;    }    catch (EventNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_EventNotKnown ;    }    catch (FederateAlreadyPaused &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateAlreadyPaused ;    }    catch (FederateAlreadyExecutionMember &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateAlreadyExecutionMember ;    }    catch (FederateDoesNotExist &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateDoesNotExist ;    }    catch (FederateInternalError &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateInternalError ;    }    catch (FederateNameAlreadyInUse &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateNameAlreadyInUse ;    }    catch (FederateNotExecutionMember &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateNotExecutionMember ;    }    catch (FederateNotPaused &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateNotPaused ;    }    catch (FederateNotPublishing &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateNotPublishing ;    }    catch (FederateNotSubscribing &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateNotSubscribing ;    }    catch (FederateOwnsAttributes &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateOwnsAttributes ;    }    catch (FederatesCurrentlyJoined &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederatesCurrentlyJoined ;    }    catch (FederateWasNotAskedToReleaseAttribute &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederateWasNotAskedToReleaseAttribute ;    }    catch (FederationAlreadyPaused &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederationAlreadyPaused ;    }    catch (FederationExecutionAlreadyExists &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederationExecutionAlreadyExists ;    }    catch (FederationExecutionDoesNotExist &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederationExecutionDoesNotExist ;    }    catch (FederationNotPaused &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederationNotPaused ;    }    catch (FederationTimeAlreadyPassed &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_FederationTimeAlreadyPassed ;    }    catch (IDsupplyExhausted &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_IDsupplyExhausted ;    }    catch (InteractionClassNotDefined &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InteractionClassNotDefined ;    }    catch (InteractionClassNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InteractionClassNotKnown ;    }    catch (InteractionClassNotPublished &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InteractionClassNotPublished ;    }    catch (InteractionParameterNotDefined &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InteractionParameterNotDefined ;    }    catch (InteractionParameterNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InteractionParameterNotKnown ;    }    catch (InvalidDivestitureCondition &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidDivestitureCondition ;    }    catch (InvalidExtents &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidExtents ;    }    catch (InvalidFederationTime &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidFederationTime ;    }    catch (InvalidFederationTimeDelta &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidFederationTimeDelta ;    }    catch (InvalidObjectHandle &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidObjectHandle ;    }    catch (InvalidOrderType &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidOrderType ;    }    catch (InvalidResignAction &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidResignAction ;    }    catch (InvalidRetractionHandle &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidRetractionHandle ;    }    catch (InvalidRoutingSpace &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidRoutingSpace ;    }    catch (InvalidTransportType &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_InvalidTransportType ;    }    catch (MemoryExhausted &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_MemoryExhausted ;    }    catch (NameNotFound &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_NameNotFound ;    }    catch (NoPauseRequested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_NoPauseRequested ;    }    catch (NoResumeRequested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_NoResumeRequested ;    }    catch (ObjectClassNotDefined &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ObjectClassNotDefined ;    }    catch (ObjectClassNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ObjectClassNotKnown ;    }    catch (ObjectClassNotPublished &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ObjectClassNotPublished ;    }    catch (ObjectClassNotSubscribed &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ObjectClassNotSubscribed ;    }    catch (ObjectNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ObjectNotKnown ;    }    catch (ObjectAlreadyRegistered &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ObjectAlreadyRegistered ;    }    catch (RegionNotKnown &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_RegionNotKnown ;    }    catch (RestoreInProgress &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_RestoreInProgress ;    }    catch (RestoreNotRequested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_RestoreNotRequested ;    }    catch (RTIinternalError &e) {        if (e._reason == NULL)            D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        else            D.Out(pdExcept, "Catching \"%s\" exception: %s.", e._name, e._reason);        CPY_NOT_NULL(e);        rep.exception = e_RTIinternalError ;    }    catch (SaveInProgress &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_SaveInProgress ;    }    catch (SaveNotInitiated &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_SaveNotInitiated ;    }    catch (SecurityError &e) {        cout << endl << "Security Error : " << e._reason << endl ;        CPY_NOT_NULL(e);        rep.exception = e_SecurityError ;    }    catch (SpaceNotDefined &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_SpaceNotDefined ;    }    catch (SpecifiedSaveLabelDoesNotExist &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_SpecifiedSaveLabelDoesNotExist ;    }    catch (TimeAdvanceAlreadyInProgress &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_TimeAdvanceAlreadyInProgress ;    }    catch (TimeAdvanceWasNotInProgress &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_TimeAdvanceWasNotInProgress ;    }    catch (TooManyIDsRequested &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_TooManyIDsRequested ;    }    catch (UnableToPerformSave &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_UnableToPerformSave ;    }    catch (UnimplementedService &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_UnimplementedService ;    }    catch (UnknownLabel &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_UnknownLabel ;    }    catch (ValueCountExceeded &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ValueCountExceeded ;    }    catch (ValueLengthExceeded &e) {        D.Out(pdExcept, "Catching \"%s\" exception.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_ValueLengthExceeded ;    }    // Non RTI specific exception, Client connection problem(internal)    catch (NetworkError &e) {        strcpy(buffer, " - NetworkError");        auditServer->endLine(rep.exception, buffer);        throw e ;    }    // Default Handler    catch (Exception &e) {        D.Out(pdExcept, "Unknown Exception : %s.", e._name);        CPY_NOT_NULL(e);        rep.exception = e_RTIinternalError ;    }    // buffer may contain an exception reason. If not, set it to OK    // or Exception    if (strlen(buffer)== 0) {        if (rep.exception == e_NO_EXCEPTION)            strcpy(buffer, " - OK");        else            strcpy(buffer, " - Exception");    }    auditServer->endLine(rep.exception, buffer);    if (link == NULL) return link ;    if (rep.exception != e_NO_EXCEPTION) {        rep.write(link);        D.Out(pdExcept,              "RTIG catched exception %d and sent it back to federate %d.",              rep.exception, rep.federate);    }    return link ;}// ----------------------------------------------------------------------------//! process received signals.voidRTIG::signalHandler(int sig){    D.Out(pdError, "Received Signal %d.", sig);    if (sig == SIGINT) terminate = true ;    if (sig == SIGPIPE) cout << "Ignoring 'Broken pipe' signal." << endl ;}}} // namespace certi/rtig// $Id: RTIG.cc,v 3.7 2003/03/21 15:06:46 breholee Exp $

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -