org.vishia.java2C.test
Interface Ifc2

All Known Implementing Classes:
ExtendsImpl, ImplIfc

public interface Ifc2


Method Summary
 float anotherIfcmethod(float input)
          Example for an interface method, which has the same name and same paremeters like the method Ifc.anotherIfcmethod(float).
 float processIfcMethod(float input)
          Example for an interface method with the same name but other parameter types, which is implemented together with Ifc.processIfcMethod(int) in ImplIfc.
 float testIfc2(float input)
          Another method.
 

Method Detail

processIfcMethod

float processIfcMethod(float input)
Example for an interface method with the same name but other parameter types, which is implemented together with Ifc.processIfcMethod(int) in ImplIfc. In Java that are two different methods of course, and also in C. In both interfaces, this methods are independent, this method is declared with an method type in its headerFile, adequate to the other method in Ifc:
 typedef float MT_processIfcMethod_Ifc2_Test(ObjectJc* ithis, float input, ThCxt* _thCxt);
 


testIfc2

float testIfc2(float input)
Another method.


anotherIfcmethod

float anotherIfcmethod(float input)
Example for an interface method, which has the same name and same paremeters like the method Ifc.anotherIfcmethod(float). Therefore only one implementation is necessary. In this interface the method type
 METHOD_C float anotherIfcmethod_Ifc2_Test(ObjectJc* ithis, float input, ThCxt* _thCxt);
 
is declared for it. In opposite the method type of the same method Ifc.anotherIfcmethod(float) is
 METHOD_C float anotherIfcmethod_f_Ifc_Test(ObjectJc* ithis, float input, ThCxt* _thCxt);
 
Both declarations are independent, because the interface definitions are so. But the implementation for both methods are the same, and the implementation are compatible to both declarations of function type. See ImplIfc.anotherIfcmethod(float).