certi-cvs
[Top][All Lists]
Advanced

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

[certi-cvs] applications/HLA_TestsSuite create_destroy.cc


From: certi-cvs
Subject: [certi-cvs] applications/HLA_TestsSuite create_destroy.cc
Date: Tue, 13 May 2008 13:04:32 +0000

CVSROOT:        /sources/certi
Module name:    applications
Changes by:     ROUSSELOT <rousse>      08/05/13 13:04:31

Modified files:
        HLA_TestsSuite : create_destroy.cc 

Log message:
        try catch added on get attribute handle

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/applications/HLA_TestsSuite/create_destroy.cc?cvsroot=certi&r1=1.3&r2=1.4

Patches:
Index: create_destroy.cc
===================================================================
RCS file: /sources/certi/applications/HLA_TestsSuite/create_destroy.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- create_destroy.cc   7 May 2008 09:57:07 -0000       1.3
+++ create_destroy.cc   13 May 2008 13:04:31 -0000      1.4
@@ -714,8 +714,13 @@
                                     return false;}
 
     // Attributs des classes d'Objets
+    try
+      {
     AttributeID = myCreate_Destroy->getAttributeHandle(attribute_name, 
ClassID);
     printf("Attribute %s from Object Class handle %d has handle = 
%d\n",attribute_name,ClassID,AttributeID);
+      }
+    catch (RTI::NameNotFound) { printf("Attribute %s not 
found\n",attribute_name);
+                                    return false;}
 
     // Interactions
     //InteractClassID = 
myCreate_Destroy->getInteractionClassHandle(interaction_name);




reply via email to

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