home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / epprop.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  3KB  |  99 lines

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