This library contains some code examples, as well as some solutions to assignments. All of the header files are considered "public" while the .cpp files are considered "private" - we will want the students to write their own implementations of these classes for some of the assignments. In particular:
- dataobject.h/cpp - we want the students to write their own implementation of DataObject, so while just about all of the other classes in this library depend on it, we do not give out the dataobject class. Students can start with our .h file if they wish, or else start with a minimal interface for their particular assignment.
- xmlimport.h/cpp - this version is similar to the one in xml/propchildren, but is customized for dataobject.
- country.h, country.cpp, address.cpp, address.h - example dataobjects with constraints
- dataobjecttablemodel.h, dataobjecttablemodel.cpp - bridging between the QAbstractTableModel and the DataObject interface.
- objectfactory.cpp, objectfactory.h - used by xmlimport
- constraint.h/cpp - the constraint classes - for describing input constraints. These might be moved out of dataobject soon, since we will not be using them in GUI applications. We don't need these since there are QValidators on input widgets.
- stdinreader.h/cpp - this is used in testconstraint.h/cpp