Rajesh Khan
2011-12-21 08:24:13 UTC
I have an interface as :
my idl file:
*typedef sequence<CustObj> CustObj_Cont;
interface TestInt {
CustObj_Cont get_obj();
void set_obj(in CustObj_Cont rx);
}; *
my cpp file:
So to create a CustObj_Cont that could be passed to set_obj I did something
like this
*CustObj obja;
obja.val =100;
CustObj objb;
objb.val =20;
::_CORBA_Unbounded_Sequence<CustObj> vctor_;*
Now here is where the problem starts if this was a vector i could have
simply done something like vctor_.push_back(obja)
but its not . so how can i push elements into an unbounded sequence?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20111220/102afd69/attachment.htm
my idl file:
*typedef sequence<CustObj> CustObj_Cont;
interface TestInt {
CustObj_Cont get_obj();
void set_obj(in CustObj_Cont rx);
}; *
my cpp file:
So to create a CustObj_Cont that could be passed to set_obj I did something
like this
*CustObj obja;
obja.val =100;
CustObj objb;
objb.val =20;
::_CORBA_Unbounded_Sequence<CustObj> vctor_;*
Now here is where the problem starts if this was a vector i could have
simply done something like vctor_.push_back(obja)
but its not . so how can i push elements into an unbounded sequence?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20111220/102afd69/attachment.htm