Source code of Windows XP (NT5)
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.

108 lines
2.7 KiB

  1. /****************************************************************************
  2. Copyright information : Copyright (c) 1998-1999 Microsoft Corporation
  3. File Name : ParsedInfo.h
  4. Project Name : WMI Command Line
  5. Author Name : Ch. Sriramachandramurthy
  6. Date of Creation (dd/mm/yy) : 27th-September-2000
  7. Version Number : 1.0
  8. Revision History :
  9. Last Modified by : Ch. Sriramachandramurthy
  10. Last Modified Date : 16th-January-2001
  11. ****************************************************************************/
  12. /*-------------------------------------------------------------------
  13. Class Name : CParsedInfo
  14. Class Type : Concrete
  15. Brief Description : This class encapsulates the functionality needed
  16. for accessing the storing the parsed command line
  17. information.
  18. Super Classes : None
  19. Sub Classes : None
  20. Classes Used : CGlobalSwitches
  21. CCommandSwitches
  22. CHelpInfo
  23. Interfaces Used : None
  24. --------------------------------------------------------------------*/
  25. class CGlobalSwitches;
  26. class CCommandSwitches;
  27. class CHelpInfo;
  28. class CErrorLog;
  29. /////////////////////////////////////////////////////////////////////////////
  30. class CParsedInfo
  31. {
  32. // Construction
  33. public:
  34. CParsedInfo();
  35. // Destruction
  36. public:
  37. ~CParsedInfo();
  38. // Restrict Assignment
  39. CParsedInfo& operator=(CParsedInfo& rParsedInfo);
  40. // Attributes
  41. private:
  42. //member variable for storing Command switches
  43. CCommandSwitches m_CmdSwitches;
  44. //member variable for storing Global switches
  45. CGlobalSwitches m_GlblSwitches;
  46. //member variable for Help support
  47. CHelpInfo m_HelpInfo;
  48. CErrorLog m_ErrorLog;
  49. _TCHAR m_pszPwd[2];
  50. WMICLIINT m_bNewCmd;
  51. BOOL m_bNewCycle;
  52. // Operations
  53. public:
  54. //Returns the member object "m_CmdSwitches"
  55. CCommandSwitches& GetCmdSwitchesObject();
  56. //Returns the member object "m_GLblSwitches"
  57. CGlobalSwitches& GetGlblSwitchesObject();
  58. //Returns the member object "m_HelpInfo"
  59. CHelpInfo& GetHelpInfoObject();
  60. //Returns the member object m_ErrorLog;
  61. CErrorLog& GetErrorLogObject();
  62. //Member function for initializing member variables
  63. void Initialize();
  64. //Member function for uninitializing member variables
  65. void Uninitialize(BOOL bBoth);
  66. // Returns user name
  67. _TCHAR* GetUser();
  68. // Returns node name
  69. _TCHAR* GetNode();
  70. // Returns locale value
  71. _TCHAR* GetLocale();
  72. // Returns password
  73. _TCHAR* GetPassword();
  74. // Returns namespace value
  75. _TCHAR* GetNamespace();
  76. // Returns the user. if NULL returns "N/A"
  77. void GetUserDesc(_bstr_t& bstrUser);
  78. BOOL GetNewCommandStatus();
  79. void SetNewCommandStatus(BOOL bStatus);
  80. BOOL GetNewCycleStatus();
  81. void SetNewCycleStatus(BOOL bStatus);
  82. };