uisp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Uisp-dev] The many cables


From: Margarita Manterola
Subject: Re: [Uisp-dev] The many cables
Date: Wed, 20 Oct 2004 17:30:47 -0300

On Wed, 20 Oct 2004 10:20:32 -0700 (PDT), Theodore A. Roth
<address@hidden> wrote:

> > Could we have the description of each cable stored in a file, and read
> > the values into variables from that file, according to the type of
> > cable selected?

> Avrdude already does something like that via a monster config file.
> Are you talking about parsing a config file?
> I'm not a a big fan of adding yet another config file to the user's
> system.

Well not necessary a monster config file.  Maybe many different files,
one for each cable.  The idea was that one could add a new cable
without having to understand all the uisp code.

> > What do you think?
> I've thought about this in the past but never had the time to move
> forward on it...
> 
> The switch statements could very easily be replaced with a class
> structure. Setup a base class and have each cable type inherit that and
> then tweak what it needs. Then each of the many switch statements in the
> code is just replaced by a call the classes method to handle that
> operation.

Well, yes, this would still imply understanding the uisp code, but
would be much more cleaner.

-- 
Besos,
Marga




reply via email to

[Prev in Thread] Current Thread [Next in Thread]