how to fix demotool?

how to fix demotool?

Discussion between Spring developers.
Post Reply
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

how to fix demotool?

Post by abma »

demotool currently is broken, because the filehandler requires the whole filesystem & logging.

any ideas how to cleanly fix it?

imo adding ifdefs to filehandler would be the dirty way...


i would suggest to add an interface like:

Code: Select all

class IFile {
  Open()
  Close()
  Read()
  Write()
  Seek()
  GetPos()
  Eof()
}
This interface is then used for all file accesses (gzip, raw)

The DemoRecorder has to be changed to:

DemoRecorder(IFile* demofile, ...)

This way the demotool then just would depend on one class (CFile).

Thoughts?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: how to fix demotool?

Post by jK »

that explains why it didn't used CFileHandler >_<
need to think about for a while.
Post Reply

Return to “Dedicated Developer Discussion”