home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / chprop.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.5 KB  |  87 lines

  1. /***********************************************************************
  2. **      C P R O P . H                                                   *
  3. **                                                                     *
  4. ************************************************************************
  5. ** Copyright (C) 1996 - 1999 Microsoft Corporation                         *
  6. **                 All Rights Reserved                                 *
  7. ************************************************************************/
  8. /*
  9.         CPROP.H
  10.  
  11.         ChannelProperty record object class definitions for Microsoft Guide
  12. */
  13.  
  14.  
  15. #ifndef _CPROP_H_
  16. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  17. #define _CPROP_H_
  18.  
  19.  
  20. #include "dbsets.h"
  21.  
  22.  
  23. /*
  24.  
  25. ChannelProperty objects are constructed from database records of the ChannelProperty table.
  26.  
  27. The CChannelPropertyRecordset class is used to select and create CChannelProperty objects
  28. from the ChannelProperty table via functions in the CDatabaseRecordset parent class.
  29.  
  30. */
  31.  
  32.  
  33. class  COMMMSTVEXPORT CChannelPropertyRecordset : public CDatabaseRecordset
  34. {
  35. // This class provides ChannelProperty recordset manipulation via parent functions
  36.  
  37. virtual CString GetTableName( VOID);
  38.  
  39. virtual BOOL    SetRecordsetObject( VOID* cRecordsetObject);
  40.  
  41. public:
  42. virtual VOID*   GetRecordsetObject( VOID);
  43. virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);
  44. };
  45.  
  46.  
  47. class COMMMSTVEXPORT CChannelProperty : public CObject
  48. {
  49.     friend class CChannelPropertyRecordset; // generates the CChannelProperty record object
  50.  
  51. private:
  52.  
  53.     LONG            m_lChannelID;
  54.     LONG            m_lBroadcastPropertyID;
  55.  
  56. public:
  57.  
  58.     CChannelProperty(LONG lChannelID = 0,
  59.                         LONG lBroadcastPropertyID = 0) :
  60.                         m_lChannelID(lChannelID),
  61.                         m_lBroadcastPropertyID(lBroadcastPropertyID) { }
  62.  
  63.     ~CChannelProperty(VOID) { }
  64.  
  65.  
  66.     VOID    SetChannelID( LONG lChannelID) { m_lChannelID = lChannelID; }
  67.     VOID    SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }
  68.  
  69.     LONG            ChannelID() { return m_lChannelID; }
  70.     LONG            BroadcastPropertyID() { return m_lBroadcastPropertyID; }
  71. };
  72.  
  73.  
  74. // Table: Channel
  75.  
  76. #define  TBL_ChannelProperty  _T("[Channel Property]")
  77.  
  78. //      Field:                                        Name                          Type        Size
  79.  
  80. #define FLD_ChannelProperty_ChannelID                _T("CP Channel ID")              // Long        4
  81. #define FLD_ChannelProperty_BroadcastPropertyID        _T("CP Broadcast Property ID")     // Long        4
  82.  
  83. #pragma option pop /*P_O_Pop*/
  84. #endif
  85.  
  86.  
  87.