treeview.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. // treeview.h : main header file for the TREEVIEW application
  14. //
  15. #if !defined(AFX_TREEVIEW_H__B2A09705_710F_4AF0_995C_963FD094A139__INCLUDED_)
  16. #define AFX_TREEVIEW_H__B2A09705_710F_4AF0_995C_963FD094A139__INCLUDED_
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif // _MSC_VER > 1000
  20. #ifndef __AFXWIN_H__
  21. #error include 'stdafx.h' before including this file for PCH
  22. #endif
  23. #include "resource.h" // main symbols
  24. class CTreeviewApp; // forward reference
  25. class CCmdLineInfo : public CCommandLineInfo
  26. {
  27. private:
  28. CTreeviewApp & app;
  29. public:
  30. CCmdLineInfo(CTreeviewApp & _app) : app(_app) {}
  31. virtual void ParseParam(LPCTSTR param, BOOL flags, BOOL last);
  32. };
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CTreeviewApp:
  35. // See treeview.cpp for the implementation of this class
  36. //
  37. class CTreeviewApp : public CWinApp
  38. {
  39. private:
  40. CCmdLineInfo * cmdLineInfo;
  41. LPSTR inFilename; // the filename for the tree
  42. public:
  43. CTreeviewApp();
  44. ~CTreeviewApp();
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CTreeviewApp)
  48. public:
  49. virtual BOOL InitInstance();
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. //{{AFX_MSG(CTreeviewApp)
  53. // NOTE - the ClassWizard will add and remove member functions here.
  54. // DO NOT EDIT what you see in these blocks of generated code !
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. friend class CCmdLineInfo;
  58. };
  59. /////////////////////////////////////////////////////////////////////////////
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_TREEVIEW_H__B2A09705_710F_4AF0_995C_963FD094A139__INCLUDED_)