Multiple Output Ports in CPP 2005-04-04 - By Martin Matzeder
Back Doesn't matter, I'm glad that I have the name now.
Martin
Aloys Baillet wrote:
> Indeed, switch cannot work with custom classes... sorry for the > misleading info! > You will have to do some if /else ... > > On Apr 4, 2005 5:58 PM, *Martin Matzeder* > <puppet_martin@(protected) > <mailto:puppet_martin@(protected)>> wrote: > > Thank You, > > but I get this error at compilation time: > > f:\!Coding\first_operator\weightmap_only\weightmap_only\weightmap_only .cpp(98): > error C2450: switch expression of type 'XSI::CString' is illegal > > Martin > > Aloys Baillet wrote: > > > 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) > <mailto:puppet_martin@(protected)> > > <mailto:puppet_martin@(protected) > <mailto: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) > <mailto:Majordomo@(protected)> > > <mailto:Majordomo@(protected) > <mailto:Majordomo@(protected)>> with the following text in body: > > unsubscribe xsi > > > > > > > > > > -- > > Aloys Baillet - TD / R&D @ La Maison - www.alamaison.fr > <http://www.alamaison.fr> > > <http://www.alamaison.fr> > > --- > Unsubscribe? Mail Majordomo@(protected) > <mailto:Majordomo@(protected)> with the following text in body: > unsubscribe xsi > > > > > -- > Aloys Baillet - TD / R&D @ La Maison - www.alamaison.fr > <http://www.alamaison.fr>
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|