home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 79 / IOPROG_79.ISO / soft / Tools / XMLSPYEnt2004 / XMLSPYEntComplete2004.exe / Data1.cab / _61B0B98B9AC94EE8A3089A31BB5E9078 < prev    next >
Encoding:
Text File  |  2003-10-08  |  1.5 KB  |  65 lines

  1. ////////////////////////////////////////////////////////////////////////
  2. //
  3. // [=$module].h
  4. //
  5. // This file was generated by [=$Host].
  6. //
  7. // YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
  8. // OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
  9. //
  10. // Refer to the [=$HostShort] Documentation for further details.
  11. // [=$HostURL]
  12. //
  13. ////////////////////////////////////////////////////////////////////////
  14.  
  15.  
  16. #ifndef [=$module]_H_INCLUDED
  17. #define [=$module]_H_INCLUDED
  18.  
  19. #if _MSC_VER > 1000
  20.     #pragma once
  21. #endif // _MSC_VER > 1000
  22.  
  23.  
  24. #ifndef _USRDLL
  25.     #define [=$module]_DECLSPECIFIER
  26. #else
  27.     #ifdef [=$module]_EXPORTS
  28.         #define [=$module]_DECLSPECIFIER __declspec(dllexport)
  29.     #else
  30.         #define [=$module]_DECLSPECIFIER __declspec(dllimport)
  31.     #endif
  32. #endif
  33.  
  34.  
  35. namespace [=$module]
  36. {
  37.  
  38.  
  39. class [=$module]Database : public CDatabase {
  40. public:
  41.     [=$module]Database() : CDatabase() {}
  42.     [=$module]Database(const tstring& sConnectionString) : CDatabase(sConnectionString) {}
  43.     virtual ~[=$module]Database() {}
  44. };
  45.  
  46.  
  47. [foreach $table in $library.Tables
  48. ]class [=$table.Name]Set : public CRecordSet {
  49. public:
  50.     [=$table.Name]Set() : CRecordSet() {}
  51.     [=$table.Name]Set(CDatabase& rDatabase, const tstring& sQuery) : CRecordSet(rDatabase, sQuery) {}
  52.     virtual ~[=$table.Name]Set() {}
  53.  
  54. [    foreach $column in $table.Columns
  55. ]    [=$column.Type] Get[=$column.Name]() { return InternalGetValue(_T(\"[=$column.DBName]\")); }
  56. [    next
  57. ]};
  58. [next
  59. ]
  60.  
  61. } // namespace [=$module]
  62.  
  63.  
  64. #endif // [=$module]_H_INCLUDED
  65.