What exactly do in, out and inout – ‘directional’ operators mean in CORBA IDL function parameters?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From Ciaran McHale’s free online book, CORBA Explained Simply:
So an
inparameter 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.An
outparameter is just like a return value, so the caller never populates it with a value. 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. You can have as manyoutparameters as you want, allowing you to return multiple distinct objects or values without having to first combine them into astruct.An
inoutparameter combines the two concepts above. The caller must populate allinoutparameters with valid data but those values may be different after the function returns because the server is free to put new data in there.