# RTIambPrivateRefs.hh

Go to the documentation of this file.

    00001 // ----------------------------------------------------------------------------
    00002 // CERTI - HLA RunTime Infrastructure
    00003 // Copyright (C) 2002-2005  ONERA
    00004 //
    00005 // This file is part of CERTI-libRTI
    00006 //
    00007 // CERTI-libRTI is free software ; you can redistribute it and/or
    00008 // modify it under the terms of the GNU Lesser General Public License
    00009 // as published by the Free Software Foundation ; either version 2 of
    00010 // the License, or (at your option) any later version.
    00011 //
    00012 // CERTI-libRTI is distributed in the hope that it will be useful, but
    00013 // WITHOUT ANY WARRANTY ; without even the implied warranty of
    00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    00015 // Lesser General Public License for more details.
    00016 //
    00017 // You should have received a copy of the GNU Lesser General Public
    00018 // License along with this program ; if not, write to the Free Software
    00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    00020 // USA
    00021 //
    00022 // $Id: RTIambPrivateRefs.hh,v 3.8 2009/04/02 19:58:07 erk Exp $
    00023 // ----------------------------------------------------------------------------
    00024
    00025 #include "RTI.hh"
    00026 #include "fedtime.hh"
    00027 #include "Message.hh"
    00028 #include "RootObject.hh"
    00029 #include "MessageBuffer.hh"
    00030
    00031 using namespace certi ;
    00032
    00033 class RTIambPrivateRefs
    00034 {
    00035 public:
    00036     RTIambPrivateRefs();
    00037     ~RTIambPrivateRefs();
    00038
    00039     void processException(Message *);
    00040     void executeService(Message *requete, Message *reponse);
    00041     void sendTickRequestStop();
    00042     void callFederateAmbassador(Message *msg) throw (RTI::RTIinternalError);
    00043     void leave(const char *msg) throw (RTI::RTIinternalError);
    00044
    00045     #ifdef _WIN32
    00046       HANDLE    handle_RTIA;
    00047     #endif
    00048
    00049     pid_t pid_RTIA ;
    00050
    00052     RTI::FederateAmbassador *fed_amb ;
    00053
    00055     bool is_reentrant ;
    00056
    00057     RootObject *_theRootObj ;
    00058
    00059     SocketUN *socketUn ;
    00060     MessageBuffer msgBufSend,msgBufReceive ;
    00061 };
    00062
    00063 // $Id: RTIambPrivateRefs.hh,v 3.8 2009/04/02 19:58:07 erk Exp $