certi-cvs
[Top][All Lists]
Advanced

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

[certi-cvs] certi/libRTI RTIambassador.cc


From: certi-cvs
Subject: [certi-cvs] certi/libRTI RTIambassador.cc
Date: Wed, 04 Jun 2008 15:08:32 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     ROUSSELOT <rousse>      08/06/04 15:08:32

Modified files:
        libRTI         : RTIambassador.cc 

Log message:
        About Tag NULL

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libRTI/RTIambassador.cc?cvsroot=certi&r1=3.85&r2=3.86

Patches:
Index: RTIambassador.cc
===================================================================
RCS file: /sources/certi/certi/libRTI/RTIambassador.cc,v
retrieving revision 3.85
retrieving revision 3.86
diff -u -b -r3.85 -r3.86
--- RTIambassador.cc    3 Jun 2008 14:16:22 -0000       3.85
+++ RTIambassador.cc    4 Jun 2008 15:08:31 -0000       3.86
@@ -19,7 +19,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 // USA
 //
-// $Id: RTIambassador.cc,v 3.85 2008/06/03 14:16:22 rousse Exp $
+// $Id: RTIambassador.cc,v 3.86 2008/06/04 15:08:31 rousse Exp $
 // ----------------------------------------------------------------------------
 
 
@@ -703,6 +703,10 @@
 
     req.type = Message::REGISTER_FEDERATION_SYNCHRONIZATION_POINT ;
     req.setLabel(label);
+    if ( the_tag == NULL )
+       {
+       throw RTIinternalError ("Calling registerFederationSynchronizationPoint 
with Tag NULL");
+       }
     req.setTag(the_tag);
     // boolean false because without set of federates
     req.setBoolean(false);
@@ -735,6 +739,10 @@
 
     req.type = Message::REGISTER_FEDERATION_SYNCHRONIZATION_POINT ;
     req.setLabel(label);
+    if ( theTag == NULL )
+       {
+       throw RTIinternalError ("Calling registerFederationSynchronizationPoint 
with Tag NULL");
+       }
     req.setTag(theTag);
     // boolean must be true because federate set exists but if size=0 (set 
empty)
     // we have to put boolean false (HLA 1.3 compliance to inform ALL 
federates)
@@ -1170,6 +1178,10 @@
     req.type = Message::UPDATE_ATTRIBUTE_VALUES ;
     req.setObject(theObject);
     req.setFedTime(theTime);
+    if ( theTag == NULL)
+       {
+       throw RTIinternalError ("Calling updateAttributeValues with Tag NULL");
+       }
     req.setTag(theTag);
     req.setAHVPS(theAttributes);
     req.setBoolean(true);
@@ -1201,6 +1213,10 @@
 
     req.type = Message::UPDATE_ATTRIBUTE_VALUES ;
     req.setObject(the_object);
+    if ( theTag == NULL)
+       {
+       throw RTIinternalError ("Calling updateAttributeValues with Tag NULL");
+       }
     req.setTag(theTag);
     req.setAHVPS(theAttributes);
     req.setBoolean(false);
@@ -1239,7 +1255,7 @@
     req.setFedTime(theTime);
     if (theTag == NULL)
        {
-       throw RTIinternalError ("Calling sendInteraction with Tag null") ;
+       throw RTIinternalError ("Calling sendInteraction with Tag NULL") ;
        }
     req.setTag((std::string)theTag);
     req.setPHVPS(theParameters);
@@ -1275,7 +1291,7 @@
     req.setInteractionClass(theInteraction);
     if (theTag == NULL)
        {
-       throw RTIinternalError ("Calling sendIntercation with Tag null") ;
+       throw RTIinternalError ("Calling sendIntercation with Tag NULL") ;
        }
     req.setTag((std::string)theTag);
     req.setPHVPS(theParameters);
@@ -1311,8 +1327,11 @@
     req.type = Message::DELETE_OBJECT_INSTANCE ;
     req.setObject(theObject);
     req.setFedTime(theTime);
+    if (theTag == NULL)
+       {
+       throw RTIinternalError ("Calling deleteObjectInstance with Tag NULL") ;
+       }
     req.setTag(theTag);
-
     req.setBoolean(true);
 
     privateRefs->executeService(&req, &rep);
@@ -1336,6 +1355,10 @@
 
     req.type = Message::DELETE_OBJECT_INSTANCE ;
     req.setObject(theObject);
+    if (theTag == NULL)
+       {
+       throw RTIinternalError ("Calling deleteObjectInstance with Tag NULL") ;
+       }
     req.setTag(theTag);
     
     req.setBoolean(false);
@@ -1490,6 +1513,10 @@
 
     req.type = Message::NEGOTIATED_ATTRIBUTE_OWNERSHIP_DIVESTITURE ;
     req.setObject(theObject);
+    if (theTag == NULL)
+       {
+       throw RTIinternalError ("Calling 
negotiatedAttributeOwnershipDivestiture with Tag NULL") ;
+       }
     req.setTag(theTag);
     req.setAHS(attrs);
 
@@ -1518,6 +1545,10 @@
 
     req.type = Message::ATTRIBUTE_OWNERSHIP_ACQUISITION ;
     req.setObject(theObject);
+    if (theTag == NULL)
+       {
+       throw RTIinternalError ("Calling attributeOwnershipAcquisition with Tag 
NULL") ;
+       }
     req.setTag(theTag);
     req.setAHS(desiredAttributes);
 
@@ -2158,7 +2189,10 @@
 
     req.setType(Message::DDM_REGISTER_OBJECT);
     req.setObjectClass(object_class);
+    if ( tag != NULL )
+       {
     req.setTag(tag);
+       }
     req.setAHS(attrs, nb);
     req.setRegions(build_region_handles(regions, nb));
 
@@ -2404,6 +2438,10 @@
     req.setInteractionClass(interaction);
     req.setPHVPS(par);
     req.setFedTime(time);
+    if ( tag == NULL )
+       {
+       throw RTIinternalError ("Calling sendInteractionWithRegion with Tag 
NULL");
+       }
     req.setTag(tag);
     req.setRegion(get_handle(region));
 
@@ -2434,6 +2472,10 @@
     req.setType(Message::SEND_INTERACTION);
     req.setInteractionClass(interaction);
     req.setPHVPS(par);
+    if ( tag == NULL )
+       {
+       throw RTIinternalError ("Calling sendInteractionWithRegion with Tag 
NULL");
+       }
     req.setTag(tag);
     req.setRegion(get_handle(region));
 
@@ -2968,4 +3010,4 @@
     privateRefs->executeService(&req, &rep);
 }
 
-// $Id: RTIambassador.cc,v 3.85 2008/06/03 14:16:22 rousse Exp $
+// $Id: RTIambassador.cc,v 3.86 2008/06/04 15:08:31 rousse Exp $




reply via email to

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