home *** CD-ROM | disk | FTP | other *** search
- ////////////////////////////////////////////////////////////////////////
- //
- // [=$module].h
- //
- // This file was generated by [=$Host].
- //
- // YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
- // OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
- //
- // Refer to the [=$HostShort] Documentation for further details.
- // [=$HostURL]
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- #ifndef [=$module]_H_INCLUDED
- #define [=$module]_H_INCLUDED
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
-
- #ifndef _USRDLL
- #define [=$module]_DECLSPECIFIER
- #else
- #ifdef [=$module]_EXPORTS
- #define [=$module]_DECLSPECIFIER __declspec(dllexport)
- #else
- #define [=$module]_DECLSPECIFIER __declspec(dllimport)
- #endif
- #endif
-
-
- namespace [=$module]
- {
-
-
- class [=$module]Database : public CDatabase {
- public:
- [=$module]Database() : CDatabase() {}
- [=$module]Database(const tstring& sConnectionString) : CDatabase(sConnectionString) {}
- virtual ~[=$module]Database() {}
- };
-
-
- [foreach $table in $library.Tables
- ]class [=$table.Name]Set : public CRecordSet {
- public:
- [=$table.Name]Set() : CRecordSet() {}
- [=$table.Name]Set(CDatabase& rDatabase, const tstring& sQuery) : CRecordSet(rDatabase, sQuery) {}
- virtual ~[=$table.Name]Set() {}
-
- [ foreach $column in $table.Columns
- ] [=$column.Type] Get[=$column.Name]() { return InternalGetValue(_T(\"[=$column.DBName]\")); }
- [ next
- ]};
- [next
- ]
-
- } // namespace [=$module]
-
-
- #endif // [=$module]_H_INCLUDED
-