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

📄 rtig.cc

📁 分布式仿真 开放源码
💻 CC
📖 第 1 页 / 共 3 页
字号:
    }    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.23 2004/03/14 00:24:55 breholee Exp $

⌨️ 快捷键说明

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