- Code: Select all
void CopyFromMaterial(/*in*/ CAPEOPEN_1_2::CapeThermoMaterial source);
If we use this input type, and pass our own Material object to this function, I understand that within the function, we only have available the functions of ICapeThermoMaterial to retrieve and copy the properties of the source object - i.e. in this case GetOverallProp, GetSinglePhaseProp and GetTwoPhaseProp.
If the above assumption is correct - which I am not sure of - then how can the CopyFromMaterial function know for example what the basis of the properties stored in the source object are, since these are inputs to the getter functions?
Should the CopyFromMaterial function parameter type be changed to our own Material class in our implementation? Then we would be able to access all the data we need.