[omniORB] Validity test
Hamilton Temple
hamilton.temple at gmail.com
Mon Aug 18 16:22:58 BST 2008
Hello all,
I have defined a complex type SeqSeqStr:
module MyModule{
interface MyClass{
typedef sequence<string> SeqStr;
typedef sequence<SeqStr> SeqSeqStr;
...
};
};
Inside the interface MyClass I defined the
function:
SeqSeqStr * list(const char * locator);
The implementation of list is as follows:
MyModule::MyClass::SeqSeqStr * MyClassImp::list(const char * query){
MyModule::MyClass::SeqSeqStr_var res;
...
return res._retn();
};
The invocation is
MyModule::MyClass::SeqSeqStr_var listv;
...
listv=manager->list(query_);
I know that omniORB does not use
null pointers to represent nil references.
How could I check the validity of listv?
Can be _is_nil(CORBA::Object *) applied
in this case?
Thank you,
Hamilton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20080818/ef248ff7/attachment.htm
More information about the omniORB-list
mailing list