home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1942 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  43 lines

  1. Path: ramses.fdn.org!rodrigo.reyes
  2. From: rodrigo.reyes@ramses.fdn.org (Rodrigo Reyes)
  3. Message-ID: <65019538@ramses.fdn.org>
  4. Newsgroups: comp.sys.amiga.programmer
  5. X-FTN-To: Hans-Joerg Frieden
  6. Subject: Re: Datatype write method?
  7. Date: 25 Jan 96 09:30:02 +0200
  8. Organization: RAMSES BBS (France:1-45845623/53791199/1200)
  9. X-GateSoftware: AmiGate 1.6a (22.12.95)
  10. Reply-To: rodrigo.reyes@ramses.fdn.org
  11.  
  12. Hans-Joerg Frieden wrote in Ramses.AMIGA.PROGRAMMER about "Datatype write
  13. method?":
  14.  HF> Amiga-Native format, e.g. : 8SVX and ILBM. : : No chance to make a
  15.  HF> subclass (e.g. WAVE datatype) save its data in WAVE format, sigh.
  16.  HF> Just a guess: Shouldn't it be possible to have a class overload it's
  17.  HF> superclass' method so that it would save its own format?
  18.  
  19.   Yes, of course, there are two methods for DTM_WRITE:
  20.  
  21. /* DATATYPES_DATATYPESCLASS_H */
  22. /* DTM_WRITE */
  23. struct dtWrite
  24. {
  25.     ULONG                MethodID;
  26.  
  27. /* Save data as IFF data */
  28. #define DTWM_IFF        0
  29.  
  30. /* Save data as local data format */
  31. #define DTWM_RAW        1
  32.  
  33.  
  34.   That is.
  35.  
  36.  
  37.        Rodrigo.
  38.  
  39. [ rodrigo.reyes@ramses.fdn.org ]
  40.  
  41. ------------------------
  42. Qu'importe le flacon tant qu'on a l'ivresse.
  43.