home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / epprop.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  3KB  |  97 lines

  1. /***********************************************************************
  2. **      E P P R O P . H                                                *
  3. **                                                                     *
  4. ************************************************************************
  5. ** Copyright (C) 1996 by Microsoft Corporation                         *
  6. **                 All Rights Reserved                                 *
  7. ************************************************************************/
  8. /*
  9.  
  10.         EPPROP.H
  11.  
  12.         EpisodeProperty record object class definitions for Microsoft Guide
  13.  
  14.  
  15.  
  16. */
  17.  
  18.  
  19.  
  20. #ifndef _EPPROP_H_
  21. #define _EPPROP_H_
  22.  
  23.  
  24. #include "dbsets.h"
  25.  
  26.  
  27. /*
  28.  
  29. EpisodeProperty objects are constructed from database records of the EpisodeProperty table.
  30.  
  31. The CEpisodePropertyRecordset class is used to select and create CEpisodeProperty objects
  32. from the EpisodeProperty table via functions in the CDatabaseRecordset parent class.
  33.  
  34. */
  35.  
  36.  
  37.  
  38. class  COMMMSTVEXPORT CEpisodePropertyRecordset : public CDatabaseRecordset
  39. {
  40.  
  41. // This class provides EpisodeProperty recordset manipulation via parent functions
  42.  
  43. virtual CString GetTableName( VOID);
  44.  
  45. virtual BOOL    SetRecordsetObject( VOID* cRecordsetObject);
  46.  
  47. public:
  48. virtual VOID*   GetRecordsetObject( VOID);
  49. virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);
  50. };
  51.  
  52.  
  53.  
  54.  
  55. class COMMMSTVEXPORT CEpisodeProperty : public CObject
  56. {
  57.  
  58.     friend class CEpisodePropertyRecordset; // generates the CEpisodeProperty record object
  59.  
  60.  
  61. public:
  62.  
  63.     CEpisodeProperty(LONG m_lEpisodeID = 0,
  64.                         LONG lBroadcastPropertyID = 0) :
  65.                         m_lEpisodeID(m_lEpisodeID),
  66.                         m_lBroadcastPropertyID(lBroadcastPropertyID) { }
  67.  
  68.     ~CEpisodeProperty(VOID) { }
  69.  
  70.     VOID    SetEpisodeID( LONG lEpisodeID) { m_lEpisodeID = lEpisodeID; }
  71.     VOID    SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }
  72.  
  73.     LONG            EpisodeID() { return m_lEpisodeID; }
  74.     LONG            BroadcastPropertyID() { return m_lBroadcastPropertyID; }
  75.  
  76.  
  77. private:
  78.  
  79.     LONG            m_lEpisodeID;
  80.     LONG            m_lBroadcastPropertyID;
  81.  
  82.  
  83. };
  84.  
  85. // Table: EpisodeProperty
  86.  
  87. #define  TBL_EpisodeProperty  _T("[Episode Property]")
  88.  
  89. //      Field:                                      Name                          Type    Size
  90.  
  91. #define FLD_EpisodeProperty_EpisodeID           _T("EP Episode ID")            // Long      4
  92. #define FLD_EpisodeProperty_BroadcastPropertyID _T("EP Broadcast Property ID") // Long      4
  93.  
  94.  
  95. #endif
  96.  
  97.