Re: ScriptInput Class?


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Tyler Woods on March 18, 2001 at 17:29:37:

In Reply to: ScriptInput Class? posted by Greg Grothaus on March 17, 2001 at 17:24:09:

: The design requirements say that the template, the books, the authors, the database, and the manager all cannot do any file input. Fine. Then it goes on to say that the ScriptInput class is for reading in the script file and we can have a LogOutput file for outputting the log file. But there are 2 other files involved, the two databases. Should we create DatabaseInput classes as well, or just rename ScriptInput to FileInput and use it to input the other commands. Also, which class (manager or database) would be responsible for requesting that data from the FileInput class. Does it matter?

: PS: This text input box needs a wrap parameter for those of us using netscape.

You shouldn't have to. If you have a properly designed Input class, you can use the same class to read in the data base input files as you could to read in the script file. Remember, your input class is not doing "ANY" interpretation of the input file. Which means, if you have to have 2 separate classes... you're not following the specs. All your input class should do is read the file and return a series of "tokens". I think I'll be able to completely reuse my FileManager class from P1... if im lucky... Hope this helps.

Tyler


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]