[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] certi/libCERTI ObjectClass.cc
From: |
CERTI CVS commits |
Subject: |
[certi-cvs] certi/libCERTI ObjectClass.cc |
Date: |
Wed, 08 Jun 2011 14:40:57 +0000 |
CVSROOT: /sources/certi
Module name: certi
Changes by: Eric NOULARD <erk> 11/06/08 14:40:56
Modified files:
libCERTI : ObjectClass.cc
Log message:
Merge patch from Eugene.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libCERTI/ObjectClass.cc?cvsroot=certi&r1=3.86&r2=3.87
Patches:
Index: ObjectClass.cc
===================================================================
RCS file: /sources/certi/certi/libCERTI/ObjectClass.cc,v
retrieving revision 3.86
retrieving revision 3.87
diff -u -b -r3.86 -r3.87
--- ObjectClass.cc 11 Apr 2011 11:44:11 -0000 3.86
+++ ObjectClass.cc 8 Jun 2011 14:40:56 -0000 3.87
@@ -19,7 +19,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA
//
-// $Id: ObjectClass.cc,v 3.86 2011/04/11 11:44:11 erk Exp $
+// $Id: ObjectClass.cc,v 3.87 2011/06/08 14:40:56 erk Exp $
// ----------------------------------------------------------------------------
#include "Object.hh"
@@ -1227,7 +1227,6 @@
}
int compteur_assumption = 0 ;
- int compteur_acquisition = 0 ;
NM_Unconditional_Attribute_Ownership_Divestiture *AnswerAssumption = NULL ;
ObjectClassBroadcastList *List = NULL ;
FederateHandle NewOwner ;
@@ -1292,7 +1291,7 @@
delete AnswerAssumption;
}
- if (compteur_acquisition != 0) {
+ if (!diffusionAcquisition.empty()) {
NM_Attribute_Ownership_Acquisition_Notification AOAN;
sendToOwners(diffusionAcquisition, object,
theFederateHandle, "\0",
@@ -1341,11 +1340,6 @@
//! TODO: replace 'compteur' with 'counter'
int compteur_notification = 0 ;
- /*! UPD. these counters are really useless
- * because they copy the std::vector<> size.
- */
- int compteur_divestiture = 0 ;
- int compteur_release = 0 ;
FederateHandle oldOwner ;
if (server != NULL) {
// The federate have to publish the class
@@ -1405,14 +1399,14 @@
else
delete AnswerNotification ;
- if (compteur_divestiture != 0) {
+ if (!diffusionDivestiture.empty()) {
NM_Attribute_Ownership_Divestiture_Notification AODN;
sendToOwners(diffusionDivestiture, object,
theFederateHandle, "\0",
AODN);
}
- if (compteur_release != 0) {
+ if (!diffusionRelease.empty()) {
NM_Request_Attribute_Ownership_Release RAOR;
sendToOwners(diffusionRelease, object, theFederateHandle,
theTag, RAOR);
@@ -1492,7 +1486,7 @@
object->setOwner(newOwner);
}
- if (compteur_acquisition != 0) {
+ if (!diffusionAcquisition.empty()) {
NM_Attribute_Ownership_Acquisition_Notification AOAN;
sendToOwners(diffusionAcquisition, object, the_federate,
"\0",AOAN);
}
@@ -1675,4 +1669,4 @@
} // namespace certi
-// $Id: ObjectClass.cc,v 3.86 2011/04/11 11:44:11 erk Exp $
+// $Id: ObjectClass.cc,v 3.87 2011/06/08 14:40:56 erk Exp $
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] certi/libCERTI ObjectClass.cc,
CERTI CVS commits <=