indexing description: "COM PARAMFLAGS flags" status: "See notice at end of class"; date: "$Date$"; revision: "$Revision$" class ECOM_PARAM_FLAGS inherit ECOM_FLAGS feature -- Access Paramflag_none: INTEGER is -- Whether the parameter passes or receives information is unspecified external "C [macro ]" alias "PARAMFLAG_NONE" end Paramflag_fin: INTEGER is -- Parameter passes information from the caller to the callee external "C [macro ]" alias "PARAMFLAG_FIN" end Paramflag_fout: INTEGER is -- Parameter returns information from the callee to the caller external "C [macro ]" alias "PARAMFLAG_FOUT" end Paramflag_flcid: INTEGER is -- Parameter is the LCID of a client application external "C [macro ]" alias "PARAMFLAG_FLCID" end Paramflag_fretval: INTEGER is -- Parameter is the return value of the member external "C [macro ]" alias "PARAMFLAG_FRETVAL" end Paramflag_fopt: INTEGER is -- Parameter is optional external "C [macro ]" alias "PARAMFLAG_FOPT" end Paramflag_fhasdefault: INTEGER is -- Parameter has default behaviors defined external "C [macro ]" alias "PARAMFLAG_FHASDEFAULT" end feature -- Status report has_fopt_and_fhasdefault (flag: INTEGER): BOOLEAN is -- Does `flag' include `Paramflag_fopt' and -- `Paramflag_fhasdefault'? do Result := is_paramflag_fopt (flag) and is_paramflag_fhasdefault (flag) end is_paramflag_none (flag: INTEGER): BOOLEAN is -- Is flag PARAMFLAG_NONE? do Result := flag = Paramflag_none end is_paramflag_fin (flag: INTEGER): BOOLEAN is -- Is `in' parameter? do Result := binary_and (flag, Paramflag_fin) = Paramflag_fin end is_paramflag_fout (flag: INTEGER): BOOLEAN is -- Is `out' parameter? do Result := binary_and (flag, Paramflag_fout) = Paramflag_fout end is_paramflag_flcid (flag: INTEGER): BOOLEAN is -- Is `lcid' parameter? do Result := binary_and (flag, Paramflag_flcid) = Paramflag_flcid end is_paramflag_fretval (flag: INTEGER): BOOLEAN is -- Is `retval' parameter? do Result := binary_and (flag, Paramflag_fretval) = Paramflag_fretval end is_paramflag_fopt (flag: INTEGER): BOOLEAN is -- Is `opt' parameter? do Result := binary_and (flag, Paramflag_fopt) = Paramflag_fopt end is_paramflag_fhasdefault (flag: INTEGER): BOOLEAN is -- Is `hasdefault' parameter? do Result := binary_and (flag, Paramflag_fhasdefault) = Paramflag_fhasdefault end is_valid_paramflag (flag: INTEGER): BOOLEAN is -- Is `flag' a valid combination of paramflags? do Result := is_paramflag_none (flag) or is_paramflag_fin (flag) or is_paramflag_fout (flag) or is_paramflag_flcid (flag) or is_paramflag_fretval (flag) or is_paramflag_fopt (flag) or is_paramflag_fhasdefault (flag) end end -- class ECOM_PARAM_FLAGS --|---------------------------------------------------------------- --| 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 --|----------------------------------------------------------------