Class Hierarchy   Class Index   Method Index  

CHMmessageClass.h

00001 #ifndef __CHM_MESSAGE_CLASS_H__
00002 #define __CHM_MESSAGE_CLASS_H__
00003 //---------------------------------------------------------------------------
00004 // Copyright (C) 1997-2007 iNTERFACEWARE Inc.  All Rights Reserved
00005 //
00006 // Module: CHMmessageClass
00007 //
00008 // Author: Greg Norman
00009 // Revision: $Revision: 1.13 $
00010 //
00011 // Last Edit Date: $Date: 2007-02-12 21:35:42 $
00012 // Source: $Source: /home/cvs/cvsroot/CHM/CHMmessageClass.h,v $
00013 //---------------------------------------------------------------------------
00014 #include <CHM/CHMtableClass.h>
00015 
00016 class CHMmessagePrivate;
00017 class CHMtable;
00018 class CHMengine;
00019 
00026 class CHMmessage 
00027 : public CHMtable
00028 {
00029 public:
00030    CHMmessage(const CHMengineHandle& EngineHandle, 
00031               CHMtableHandle TableHandle, 
00032               size_t MessageIndex);
00033 
00036    CHMmessage(const CHMengine& Engine, size_t MessageIndex);
00037 
00039    virtual ~CHMmessage();   
00040 
00042    const CHMchar* GenerateFlatWire() const;
00043 
00044 protected:
00045    CHMengineHandle EngineHandle() const;
00046    
00047 private:
00048    void AddRow();   // not required - done in the constructor
00049    CHMmessagePrivate* pMember;
00050 
00051    CHMmessage(const CHMmessage& Original);  // not allowed
00052    CHMmessage& operator=(const CHMmessage& Original); // not allowed
00053 };
00054 
00055 #endif  // end of defensive include