/src/wrappers/glib/test/g_dates.e

http://github.com/tybor/Liberty · Specman e · 17 lines · 15 code · 2 blank · 0 comment · 2 complexity · a813d0be9f57275297c7a69cf525abc0 MD5 · raw file

  1. class G_DATES
  2. inherit
  3. G_LIST[G_DATE]
  4. creation make, copy
  5. feature {WRAPPER,WRAPPER_HANDLER} -- Implementation
  6. wrapper (a_pointer: POINTER): G_DATE is
  7. do
  8. if wrappers.fast_has(a_pointer) then
  9. Result ?= wrappers.at(a_pointer)
  10. end
  11. if Result = Void then
  12. Result := create {G_DATE}.from_external_pointer(a_pointer)
  13. end
  14. end
  15. end