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.

51 lines
1.2 KiB

  1. /****************************************************************************************
  2. * NAME: MatchCondition.h
  3. *
  4. * CLASS: CMatchCondition
  5. *
  6. * OVERVIEW
  7. *
  8. * Match type condition
  9. *
  10. * ex: MachineType MATCH <a..z*>
  11. *
  12. *
  13. * Copyright (C) Microsoft Corporation, 1998 - 1999 . All Rights Reserved.
  14. *
  15. * History:
  16. * 1/28/98 Created by Byao (using ATL wizard)
  17. *
  18. *****************************************************************************************/
  19. #if !defined(_MATCHCONDITION_H_INCLUDED_)
  20. #define _MATCHCONDITION_H_INCLUDED_
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif // _MSC_VER >= 1000
  24. #include "atltmp.h"
  25. #include "Condition.h"
  26. class CMatchCondition : public CCondition
  27. {
  28. public:
  29. CMatchCondition(IIASAttributeInfo* pCondAttr,
  30. ATL::CString &strConditionText
  31. );
  32. CMatchCondition(IIASAttributeInfo* pCondAttr);
  33. virtual ~CMatchCondition();
  34. HRESULT Edit();
  35. virtual ATL::CString GetDisplayText();
  36. protected:
  37. HRESULT ParseConditionText();
  38. BOOL m_fParsed; // whether this condition needs to be parsed first
  39. ATL::CString m_strRegExp; // regular expression for this condition
  40. };
  41. #endif // !defined(_MATCHCONDITION_H_INCLUDED_)