indexing description: "FUNCKIND constants" status: "See notice at end of class"; date: "$Date$"; revision: "$Revision$" class ECOM_FUNC_KIND feature -- Access Func_purevirtual: INTEGER is -- Function is accessed via virtual function table -- and takes implicit 'this' pointer. -- 1 external "C [macro ]" alias "FUNC_PUREVIRTUAL" end Func_virtual: INTEGER is -- Function is accessed same as PUREVIRTUAL, -- except function has implementation. -- 0 external "C [macro ]" alias "FUNC_VIRTUAL" end Func_nonvirtual: INTEGER is -- Function is accessed by static address and takes -- implicit 'this' pointer. -- 2 external "C [macro ]" alias "FUNC_NONVIRTUAL" end Func_static: INTEGER is -- Function is accessed by static address -- and does not take implicit 'this' pointer. -- 3 external "C [macro ]" alias "FUNC_STATIC" end Func_dispatch: INTEGER is -- Function can be accessed only via IDispatch. -- 4 external "C [macro ]" alias "FUNC_DISPATCH" end feature -- Status Report to_string (kind: INTEGER): STRING is -- String representation. do if kind = Func_purevirtual then Result := "Pure virtual" elseif kind = Func_virtual then Result := "Virtual" elseif kind = Func_nonvirtual then Result := "Nonvirtual" elseif kind = Func_static then Result := "Static" elseif kind = Func_dispatch then Result := "Dispatch" end end feature -- Status setting is_valid_func_kind (kind: INTEGER): BOOLEAN is -- Is `kind' a valid function kind? do Result := kind = Func_purevirtual or kind = Func_virtual or kind = Func_nonvirtual or kind = Func_static or kind = Func_dispatch end end -- class ECOM_FUNC_KIND --|---------------------------------------------------------------- --| EiffelCOM: library of reusable components for ISE Eiffel. --| Copyright (C) 1988-1999 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building, 2nd floor --| 270 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support http://support.eiffel.com --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------