home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / macros / lpex2.tde < prev    next >
Encoding:
Text File  |  1996-02-22  |  1.5 KB  |  48 lines

  1. --
  2. -- lpex.tde
  3. --
  4. -- This is the master template to be invoked from lpex guides.
  5. -- It includes the appropriate templates according to the macros
  6. -- instantiated by selecting collection classes features.
  7. --
  8. <include element2.tde>
  9. <include main2.tde>
  10. <if ($KEY_PTR$)>
  11. <define KEY_TYPE>$KEY_CLASS$*\</define>
  12. <else>
  13. <define KEY_TYPE>$KEY_CLASS$\</define>
  14. </if>
  15. <if ($ELEMENT_PTR$)>
  16. <define ELEMENT_TYPE>$ELEMENT_CLASS$*\</define>
  17. <else>
  18. <define ELEMENT_TYPE>$ELEMENT_CLASS$\</define>
  19. </if>
  20. //------------------------------------------------------------------------------
  21. // COLLECTION CLASSES: declarations and usage sample
  22. //
  23. // The following is generated by the VisualAge C++ Collection Classes SmartGuide
  24. //------------------------------------------------------------------------------
  25.  
  26. #include <$INCLUDE_NAME$>
  27. #include <iostream.h>
  28. #include <istring.hpp>
  29. ----------------------------------------------------------------
  30. -- Definitions for the collection class
  31. ----------------------------------------------------------------
  32. $DEFINE_COLLECTION_CLASS$
  33. ----------------------------------------------------------------
  34. -- Sample program
  35. ----------------------------------------------------------------
  36. <if ($GENERATE_MAIN$)>
  37. <define NULL>\</define>
  38.  \<if ($FILE_STEM$ != $NULL$) >
  39.   \<define MAINCPP>$FILE_STEM$.cpp\</define>
  40.    \<outfile $MAINCPP$ new>
  41. #include "$FILE_STEM$.hpp"
  42. $DEFINE_MAIN$\<>
  43.    \</outfile>
  44.  \<else>
  45. $DEFINE_MAIN$\<>
  46.  \</if>
  47. </if>
  48.