? I'm not a fan of this coding approach where class methods are defined
> in a header file...I just don't like to see executable code in a
> header file. Nor do I like the idea of each cpp file having it's own
> header file. I just seems like clutter to me. On the other side, I
> think this was written by Paul and I have the utmost respect for his
> code. Kinda a rock/hard-place for me.
>
> Jack, W8TEE
I OTOH like the idea of a matching header file for each .cpp file.?
Having
everything in SDT.h seems.... like clutter.? Lots of scanning up & down
in
that huge file.? How to find the prototypes to call stuff in CAT.cpp??
Easy,
they're in CAT.h.? No scanning up & down.
Aesthetically, that giant SDT.h file gives me a similar feeling to
seeing
a few zillion global variables.
You and Al architected the T41 as a collection of small modules with
well
defined functions and interfaces that can be dropped in & out.? I feel
that
the software should be the same way.? A .cpp file/.h file pair with well
defined
interfaces that can be dropped in & out.? So - for example - if I want a
CW
keyer in another project, I can grab cw_keyer.cpp and cw_keyer.h, and I
pretty
much have it.? Yeah, I'll have to tweak them for another architecture,
but I won't have to go scanning through some giant file to find the bits
that correspond.
I do agree on the concept of not having anything whatsoever executable
inside an include file.? Or rather - not having anything that assigns
storage.
A class definition doesn't assign storage.? But it still looks messy.
? I did use the USB output on another project.? It worked fine.? It
should
work here too.? Time to get to work.
? ? ? ? ? ? ? ? - Jerry