home *** CD-ROM | disk | FTP | other *** search
- #include "oath/pdlQueue.h"
-
- #include "oath/character.h"
-
- #include <fstream.h>
-
- /////////////////////////////////////////////////////////////////////////////
- // Test of pdlQueues and putCopy()/getCopy()
-
- main ()
- {// Predefine Four Characters //////////
- characterA A = characterA::make('A');
- characterA B = characterA::make('B');
- characterA C = characterA::make('C');
- characterA D = characterA::make('D');
-
- cout << A << B << C << D << endl;
-
- // Construct the Three Lists //////////
- pdlQueueA L1 = pdlQueueA::make() << A << B << C;
- pdlQueueA L2 = pdlQueueA::make() << A << B << C;
- pdlQueueA L3 = pdlQueueA::make(L2);
-
- // Save the Three Lists //////////
- ofstream File ("pdl2.obj");
-
- L1.export(File);
- L2.export(File);
- L3.export(File);
-
- return 0;
- }
-