Aspose.Tasks for C++
ICondition.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="ICondition.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 
10 namespace Aspose {
11 
12 namespace Tasks {
13 
14 namespace Util {
15 
16 /// <summary>
17 /// Represents a condition which can be used by filters or search methods.
18 /// </summary>
19 /// <typeparam name="T">The type of object to apply method interface to.</typeparam>
20 template<typename T>
21 class ICondition : public virtual System::Object
22 {
23  typedef ICondition<T> ThisType;
24  typedef System::Object BaseType;
25 
26  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
27  RTTI_INFO_TEMPLATE_CLASS(ThisType, ThisTypeBaseTypesInfo);
28 
29 public:
30 
31  /// <summary>
32  /// Returns true if the specified object satisfy the conditions.
33  /// </summary>
34  /// <param name="el">The object to check.</param>
35  /// <returns>True if the object satisfy the conditions.</returns>
36  virtual bool Check(const T& el) = 0;
37 
38 };
39 
40 } // namespace Util
41 } // namespace Tasks
42 } // namespace Aspose
43 
44 
Represents a condition which can be used by filters or search methods.
Definition: ICondition.h:22
virtual bool Check(const T &el)=0
Returns true if the specified object satisfy the conditions.
Definition: Asn.h:13