[omniORB] How to push an element into an unbounded sequence?
    Rajesh Khan 
    rajeshkhan808 at gmail.com
       
    Tue Dec 20 19:23:40 GMT 2011
    
    
  
 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
    
    
More information about the omniORB-list
mailing list