certi-devel
[Top][All Lists]
Advanced

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

Re: [certi-dev] ResignFederationExecution


From: Michael Raab
Subject: Re: [certi-dev] ResignFederationExecution
Date: Mon, 15 Nov 2010 11:07:56 +0100

Hi Eric,

would you please review and (probably commit) the attached patch?

Thanks,
Michael



Dipl.-Inf. Michael Raab

Fraunhofer-Institut für Fabrikbetrieb und -automatisierung IFF
Virtuell Interaktives Training
Sandtorstr. 22, 39106 Magdeburg, Germany                
Telefon +49 (0) 391/ 40 90 122
Telefax +49 (0) 391/ 40 90 115
address@hidden
http://www.iff.fraunhofer.de oder http://www.vdtc.de



Von:        Eric Noulard <address@hidden>
An:        CERTI development discussions <address@hidden>
Datum:        11/15/2010 08:56 AM
Betreff:        Re: [certi-dev] ResignFederationExecution
Gesendet von:        address@hidden




2010/11/15 Michael Raab <address@hidden>:
> Sorry my fault, looks like ObjectManagement provides all necessary
> information. :-)
>
> I'm trying to iteratate through ObjectSet
> ObjectManagement::rootObject->objects.
> The problem is that I cannot access std::map iterator as ObjectSet is
> deriving private from std::map.
> Is that necessary? If yes, what would you propose?

May be adding a

const std::vector<objectHandle>&
RootObject::getAllObjectInstanceFromFederate(FederateHandle the_federate)
   throw (DeletePrivilegeNotHeld, RTIinternalError)

to the RootObject class should do the job?
This methods gets you the list of object handle you need.
Then you iterate through them and call
ObjectManagement::deleteObject

What do you think?

It will be "easier" this way to let the usual way of getting "Remove
Object Instance"
callback than adding a new message (delete them-all) that will require
new handling.


--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org

--
CERTI-Devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/certi-devel

Attachment: Resign.patch
Description: Binary data


reply via email to

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