The file that describes the public interface:

	"pq.h"
		class PQ_Conversion {
			PQ_Conversion(istream &i,ostream &e);
			virtual ~PQ_Conversion();
			bool dump(ostream &out);
			bool convertAll(AttributeList *list,TransferSyntax *transfersyntax);
			bool convertHeader(AttributeList *list);
			bool convertPixelData(AttributeList *list,TransferSyntax *transfersyntax);
		};

	NB. The Imakefile is set up to install this file in the main include area
	whenever on a "make".

Files that are usually left alone (the "glue" between headers, classes, etc.):

	"pq.cc"

		PQ_Conversion::PQ_Conversion(istream &i,ostream &e);
		PQ_Conversion::~PQ_Conversion();

	"pqcl.h"

		class PQ_Header_BothClass  : public PQ_HeaderClass
		{
		public:
			PQ_Header_BothClass(istream *ist) : PQ_HeaderClass(ist) {}
			void Dump(TextOutputStream *log);
			void ToDicom_Template   (AttributeList *list);
			void ToDicom_ManualMisc (AttributeList *list);
			void ToDicom_ManualPlane(AttributeList *list);
			void ToDicom_ManualDates(AttributeList *list);
		};

	"pqconv.cc"

		#include "pqconv.h"

	"pqdc.c"

		bool PQ_Conversion::convertHeader(AttributeList *list);
		bool PQ_Conversion::convertPixelData(AttributeList *list,TransferSyntax *transfersyntax);
		bool PQ_Conversion::convertAll(AttributeList *list,TransferSyntax *transfersyntax);

	"pqdc.h"

	"pqdmp.cc"

		bool PQ_Conversion::dump(ostream &o);

	"pqdmp.h"

	"pqhdrc.cc"

		#include "pqhdrc.h"

Files that definitely need to be tailored for each format:

	"pq.tpl"

		The template "describing" the format for header generation

	"pqmdt.cc"

		void PQ_Header_BothClass::ToDicom_ManualDates(AttributeList *list);

	"pqmmsc.cc"

		void PQ_Header_BothClass::ToDicom_ManualMisc(AttributeList *list);

	"pqmpln.cc"

		void PQ_Header_BothClass::ToDicom_ManualPlane(AttributeList *list);

	"pqptrs.h"

		define offsets, pointers and values, both fixed, and dependent on previous fields

	"pqsrc.h"

		class PQ_PixelDataSource : public SourceBase<Uint16> {
		public:
			PQ_PixelDataSource(istream& i,long off,Uint16 r,Uint16 c) : SourceBase<Uint16>();
			~PQ_PixelDataSource();
			size_t read(void);
			const Uint16 *getBuffer(void);
			size_t getBufferCount(void) const;
			int good(void) const;
		};

Files that are automatically generated from pq.tpl:

	"pqhdrp.h"

		generated with role=headerpart

		contains the detailed description of each format header
		block class, eg.

		class PQ_HeaderClass_HDR1 {
		public:
			PQ_HeaderClass_HDR1(istream *ist,size_t offset)
		 		{ ReadProprietaryHeader(ist,offset,sizeof *this,(char *)this); }

			Uint16_L 	FHENTRIES	; // at 0
			Uint16_L 	FHCOUNT		; // at 2
			...
		};

	"pqhdrw.h"

		generated with role=wholeheader

		contains the declaration of the top level class that contains instances
		classes for each block of the header, eg.

		class PQ_HeaderClass
		{
		public:
			PQ_HeaderClass(istream *ist);

			PQ_HeaderClass_HDR1 *PQ_HeaderInstance_HDR1;
			PQ_HeaderClass_HDR2 *PQ_HeaderInstance_HDR2;
			...
		};


	"pqhdrc.h"

		generated with role=constructheader

		contains the constructor for the top level class that instantiates
		classes for each block of the header

		PQ_HeaderClass::PQ_HeaderClass(istream *ist);

	"pqconv.h"

		generated with role=dicom

		contains the code to generate DICOM attributes

		void PQ_Header_BothClass::ToDicom_Template(AttributeList *list);

	"pqdmpf.h"
		generated with role=dump

		contains the code to dump a describtion of the file header content

		void PQ_Header_BothClass::Dump(TextOutputStream *log);

Places to put special handling code:

	if you need an "extra" header file for miscellaneous stuff, use "pqhdrm.h".

	if you have special purpose code, then "pqhdrc.cc" is a good place to put
	it, as normally all this file does is instantiate the "pqhdrc.h", but it
	is always going to get loaded in any application using this library.
