indexing description: "[ Test for Eiffel-GigaSpaces wrapper loosely based on POCO benchmark example ]" status: "See notice at end of class." legal: "See notice at end of class." date: "$Date$" revision: "$Revision$" class PAYLOAD_AS_STRING inherit BENCHMARK_BASE_OBJECT redefine cpp_create, cpp_cast_pointer end create make, make_from_external, make_from_entry feature set_payload (a_payload: STRING) is do create internal_payload.make (a_payload) cpp_set_payload (object_ptr, internal_payload.item) end feature {NONE} -- Implementation internal_payload: C_STRING -- Storage for `payload'. feature {NONE} -- Externals cpp_create: POINTER is external "C++ inline use %"benchmarkSerializer.h%"" alias "new payloadAsString()" end cpp_cast_pointer (obj_ptr: POINTER): POINTER is external "C++ inline use %"benchmarkSerializer.h%"" alias "(dynamic_cast((OpenSpaces::IEntry*)$obj_ptr))" end cpp_set_payload (obj_ptr: POINTER; a_payload: POINTER) is external "C++ inline use %"benchmarkSerializer.h%"" alias "((payloadAsString*)$obj_ptr)->payload = (const char*)$a_payload" end indexing copyright: "Copyright (c) 2008, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end