The caller must populate all inout parameters with valid data but those values may be different after the function returns because the server is free to put new data in there. You can have as many out parameters as you want, allowing you to return multiple distinct objects or values without having to first combine them into a struct.Īn inout parameter combines the two concepts above. In addition to these simple distributed object capabilities, CORBA-compliant ORBs can provide a number of optional services defined by the OMG. It just magically has a value when the function returns (assuming an exception wasn't thrown) because the server is responsible for putting a value inside it as part of its execution rules. Like CORBA and IDL, the IIOP standard is defined by OMG, the Object Management Group. So an in parameter is very similar to "traditional" function parameters in that the caller must pass a value for them and that value is used by the server to do its work.Īn out parameter is just like a return value, so the caller never populates it with a value. From Ciaran McHale's free online book, CORBA Explained Simply:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |