certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] applications/PyHLA/hla/_rti federateambassador.cpp


From: certi-cvs
Subject: [certi-cvs] applications/PyHLA/hla/_rti federateambassador.cpp
Date: Wed, 01 Oct 2008 21:17:19 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     Petr Gotthard <gotthardp>       08/10/01 21:17:19

Modified files:
        PyHLA/hla/_rti : federateambassador.cpp 

Log message:
        Bugfix: Added missing parameters.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/PyHLA/hla/_rti/federateambassador.cpp?cvsroot=certi&r1=1.2&r2=1.3

Patches:
Index: federateambassador.cpp
===================================================================
RCS file: /sources/certi/applications/PyHLA/hla/_rti/federateambassador.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- federateambassador.cpp      1 Oct 2008 21:08:58 -0000       1.2
+++ federateambassador.cpp      1 Oct 2008 21:17:18 -0000       1.3
@@ -11,7 +11,7 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
- * $Id: federateambassador.cpp,v 1.2 2008/10/01 21:08:58 gotthardp Exp $
+ * $Id: federateambassador.cpp,v 1.3 2008/10/01 21:17:18 gotthardp Exp $
  */
 
 // note: you must include Python.h before any standard headers are included
@@ -304,15 +304,17 @@
 throw (RTI::ObjectNotKnown, RTI::AttributeNotKnown, 
RTI::FederateOwnsAttributes,
     RTI::InvalidFederationTime, RTI::FederateInternalError)
 {
+    const RTIfedTime& time = theTime;
     // FIXME: theAttributes.getRegion() is not handled
 
     PyObject_CallMethod((PyObject *)m_federate,
-        "reflectAttributeValues", "O&O&sOOO&",
+        "reflectAttributeValues", "O&O&sOOdO&",
         RtiObjectHandle_ToPython, &theObject,
         AttributeHandleValuePairSet_ToPython, &theAttributes,
         theTag,
         RtiULongHandle_FromULong(&RtiOrderTypeType, 
theAttributes.getOrderType(0)),
         RtiULongHandle_FromULong(&RtiTransportTypeType, 
theAttributes.getTransportType(0)),
+        time.getTime(),
         EventRetractionHandle_ToPython, &theHandle);
 
     if(PyObject *exception = PyErr_Occurred()) {
@@ -354,15 +356,17 @@
 throw (RTI::InteractionClassNotKnown, RTI::InteractionParameterNotKnown,
     RTI::InvalidFederationTime, RTI::FederateInternalError)
 {
+    const RTIfedTime& time = theTime;
     // FIXME: theParameters.getRegion() is not handled
 
     PyObject_CallMethod((PyObject *)m_federate,
-        "receiveInteraction", "O&O&sOOO&",
+        "receiveInteraction", "O&O&sOOdO&",
         RtiInteractionClassHandle_ToPython, &theInteraction,
         ParameterHandleValuePairSet_ToPython, &theParameters,
         theTag,
         RtiULongHandle_FromULong(&RtiOrderTypeType, 
theParameters.getOrderType()),
         RtiULongHandle_FromULong(&RtiTransportTypeType, 
theParameters.getTransportType()),
+        time.getTime(),
         EventRetractionHandle_ToPython, &theHandle);
 
     if(PyObject *exception = PyErr_Occurred()) {
@@ -823,4 +827,4 @@
     PyModule_AddObject(module, "FederateAmbassador", (PyObject 
*)&FederateAmbassadorObjectType);
 }
 
-// $Id: federateambassador.cpp,v 1.2 2008/10/01 21:08:58 gotthardp Exp $
+// $Id: federateambassador.cpp,v 1.3 2008/10/01 21:17:18 gotthardp Exp $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]