Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

  1. //
  2. // MODULE: TOPIC.H
  3. //
  4. // PURPOSE: Class CTopic brings together all of the data structures that represent a
  5. // troubleshooting topic. Most importantly, this represents the belief network,
  6. // but it also represents the HTI template, the data derived from the BES (back
  7. // end search) file, and any other persistent data.
  8. //
  9. // COMPANY: Saltmine Creative, Inc. (206)-284-7511 [email protected]
  10. //
  11. // AUTHOR: Joe Mabel
  12. //
  13. // ORIGINAL DATE: 9-9-98
  14. //
  15. // NOTES:
  16. //
  17. // Version Date By Comments
  18. //--------------------------------------------------------------------
  19. // V3.0 09-09-98 JM
  20. //
  21. #if !defined(AFX_TOPIC_H__278584FE_47F9_11D2_95F2_00C04FC22ADD__INCLUDED_)
  22. #define AFX_TOPIC_H__278584FE_47F9_11D2_95F2_00C04FC22ADD__INCLUDED_
  23. #if _MSC_VER >= 1000
  24. #pragma once
  25. #endif // _MSC_VER >= 1000
  26. #include "BN.h"
  27. #include "apgtsbesread.h"
  28. #include "apgtshtiread.h"
  29. // The bulk of the methods on this class are inherited from CBeliefNetwork
  30. class CTopic : public CBeliefNetwork
  31. {
  32. private:
  33. CAPGTSHTIReader *m_pHTI;
  34. CAPGTSBESReader *m_pBES;
  35. CString m_pathHTI;
  36. CString m_pathBES;
  37. CString m_pathTSC;
  38. bool m_bTopicIsValid;
  39. bool m_bTopicIsRead;
  40. private:
  41. CTopic(); // do not instantiate
  42. public:
  43. CTopic( LPCTSTR pathDSC
  44. ,LPCTSTR pathHTI
  45. ,LPCTSTR pathBES
  46. ,LPCTSTR pathTSC );
  47. virtual ~CTopic();
  48. // redefined inherited methods
  49. bool IsRead();
  50. bool Read();
  51. // newly introduced methods
  52. bool HasBES();
  53. void GenerateBES(
  54. const vector<CString> & arrstrIn,
  55. CString & strEncoded,
  56. CString & strRaw);
  57. void CreatePage( const CHTMLFragments& fragments,
  58. CString& out,
  59. const map<CString,CString> & mapStrs,
  60. CString strHTTPcookies= _T("") );
  61. // JSM V3.2
  62. void ExtractNetProps(vector<CString> &arr_props);
  63. bool HasHistoryTable();
  64. };
  65. #endif // !defined(AFX_TOPIC_H__278584FE_47F9_11D2_95F2_00C04FC22ADD__INCLUDED_)