Multiple Output Ports in CPP 2005-04-04 - By Aloys Baillet
Back Hi Martin,
Here is the name you are looking for...
CStatus ClmCacheMapOp::Update ( UpdateContext& ctx, OutputPort& Out ) { CStatus hr = CStatus::OK ; CString outName( Out.GetName() ); switch (outName) your code! }
On Apr 4, 2005 4:46 PM, Martin Matzeder <puppet_martin@(protected)> wrote: > > Hi, > > I'm translating a operator from jsript to cpp. Right now I face the > problem to feed multiple output connections. In jscript I used the > switch/case statement to get the correct output. but I have no clue what > to test in cpp, cause i can see no "name" in the outputport. In scripted > operators the update routine is called for each output port, and I guess > this is the same for a compiled operator. > What is the correct way to achieve this in cpp. > > Martin > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
-- Aloys Baillet - TD / R&D @ La Maison - www.alamaison.fr<http://www.alamaison.fr>
Hi Martin,<br> <br> Here is the name you are looking for...<br> <br> CStatus ClmCacheMapOp::Update<br> (<br> UpdateContext& ctx,<br> OutputPort& Out<br> )<br> {<br> CStatus hr = CStatus::OK ;<br> CString outName( Out.GetName() );<br> switch (outName)<br> your code!<br> }<br> <br> <br><br><div><span class="gmail_quote">On Apr 4, 2005 4:46 PM, <b class="gmail _sendername">Martin Matzeder</b> <<a href="mailto:puppet_martin @(protected)">puppet_martin@(protected)</a>> wrote:</span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204) ; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I'm translating a operator from jsript to cpp. Right now I face the<br>problem to feed multiple output connections. In jscript I used the<br>switch/case statement to get the correct output. but I have no clue what<br>to test in cpp, cause i can see no "name" in the outputport. In scripted<br>operators the update routine is called for each output port, and I guess<br>this is the same for a compiled operator.<br>What is the correct way to achieve this in cpp.<br><br>Martin<br>- --<br>Unsubscribe? Mail <a href="mailto:Majordomo@(protected)">Majordomo @(protected)</a> with the following text in body:<br>unsubscribe xsi<br>< /blockquote></div><br><br><br>-- <br>Aloys Baillet - TD / R&D @ La Maison - <a href="http://www.alamaison.fr">www.alamaison.fr</a><br>
|
|