Include Reorganization

If anyone is interested, I've reorganized the user includes for friendlier
integration with C++.

The includes were interfering with abstraction in C++. The problem was
that if a C++ class held a reference to a comedi type, the type must be
included in the class' header file. However, since all comedi types were
defined in comedilib.h and comedi.h, all classes in the application also
have access to the comedi function calls.

I moved the type definitions into comedi_types.h. This way, the header
file for the class dealing with comedi can just include comedi_types.h,
and the .cc file defining the class can include comedilib.h to get the
function calls it needs without giving the rest of the application access
to those calls.

Jonathan

Received on 2004-07-16Z23:39:49