|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +title: class CObservationParameters - Dynamsoft Core Module C++ Edition API Reference |
| 4 | +description: This page shows the C++ edition of the class CObservationParameters in Dynamsoft Core Module. |
| 5 | +keywords: intermediate result, c++ |
| 6 | +needAutoGenerateSidebar: true |
| 7 | +--- |
| 8 | + |
| 9 | +# CObservationParameters |
| 10 | + |
| 11 | +The `CObservationParameters` class is used to set filter conditions for the `CIntermediateResultReceiver`, so that only intermediate results meeting specific conditions will be called back. |
| 12 | + |
| 13 | +## Definition |
| 14 | + |
| 15 | +*Namespace:* dynamsoft::intermediate_results |
| 16 | + |
| 17 | +*Assembly:* DynamsoftCore |
| 18 | + |
| 19 | +```cpp |
| 20 | +class CObservationParameters |
| 21 | +``` |
| 22 | +
|
| 23 | +## Methods Summary |
| 24 | +
|
| 25 | +| Method | Description | |
| 26 | +|----------------------|-------------| |
| 27 | +| [`SetObservedResultUnitTypes`](#setobservedresultunittypes) | Sets the types of intermediate result units that have been observed.| |
| 28 | +| [`GetObservedResultUnitTypes`](#getobservedresultunittypes) | Gets the types of intermediate result units that have been observed. | |
| 29 | +| [`IsResultUnitTypeObserved`](#isresultunittypeobserved) | Determines whether the specified result unit type was observed. | |
| 30 | +| [`AddObservedTask`](#addobservedtask) | Adds observed task name to be notified when relevant results are available. | |
| 31 | +| [`RemoveObservedTask`](#removeobservedtask) | Remove the observed task name so that intermediate results generated by the task are not notified. | |
| 32 | +| [`IsTaskObserved`](#istaskobserved) | Determines whether the specified task was observed. | |
| 33 | +| [`SetResultUnitTypesOnlyForInput`](#setresultunittypesonlyforinput) | Set the type of intermediate result unit that indicates skipping default calculations and replacing with input data units. | |
| 34 | +| [`GetResultUnitTypesOnlyForInput`](#getresultunittypesonlyforinput) | Gets the type of intermediate result unit that indicates skipping default calculations and replacing with input data units. | |
| 35 | +| [`IsResultUnitTypeOnlyForInput`](#isresultunittypeonlyforinput) | Determines whether the specified type of intermediate result unit indicates skipping default calculations and replacing with input data units. | |
| 36 | +
|
| 37 | +### SetObservedResultUnitTypes |
| 38 | +
|
| 39 | +Sets the types of intermediate result units that have been observed. |
| 40 | +
|
| 41 | +```cpp |
| 42 | +void SetObservedResultUnitTypes(unsigned long long types) |
| 43 | +``` |
| 44 | + |
| 45 | +**Parameters** |
| 46 | + |
| 47 | +`[in] types` The observed types of intermediate result units. |
| 48 | + |
| 49 | +**See Also** |
| 50 | + |
| 51 | +[IntermediateResultUnitType]({{ site.dcvb_enumerations }}core/intermediate-result-unit-type.html?src=cpp&&lang=cpp) |
| 52 | + |
| 53 | +### GetObservedResultUnitTypes |
| 54 | + |
| 55 | +Gets the types of intermediate result units that have been observed. |
| 56 | + |
| 57 | +```cpp |
| 58 | +unsigned long long GetObservedResultUnitTypes() const |
| 59 | +``` |
| 60 | + |
| 61 | +**Return value** |
| 62 | + |
| 63 | +The observed types of intermediate result units. |
| 64 | + |
| 65 | +**See Also** |
| 66 | + |
| 67 | +[IntermediateResultUnitType]({{ site.dcvb_enumerations }}core/intermediate-result-unit-type.html?src=cpp&&lang=cpp) |
| 68 | + |
| 69 | +### IsResultUnitTypeObserved |
| 70 | + |
| 71 | +Determines whether the specified result unit type was observed. |
| 72 | + |
| 73 | +```cpp |
| 74 | +bool IsResultUnitTypeObserved(IntermediateResultUnitType type) const |
| 75 | +``` |
| 76 | +
|
| 77 | +**Return value** |
| 78 | +
|
| 79 | +Returns a boolean value indicating whether the specified result unit type was observed. |
| 80 | +
|
| 81 | +**See Also** |
| 82 | +
|
| 83 | +[IntermediateResultUnitType]({{ site.dcvb_enumerations }}core/intermediate-result-unit-type.html?src=cpp&&lang=cpp) |
| 84 | +
|
| 85 | +### AddObservedTask |
| 86 | +
|
| 87 | +Adds observed task name to be notified when relevant results are available. |
| 88 | +
|
| 89 | +```cpp |
| 90 | +void AddObservedTask(const char* taskName) |
| 91 | +``` |
| 92 | + |
| 93 | +**Parameters** |
| 94 | + |
| 95 | +`[in] taskName` The specified task name. |
| 96 | + |
| 97 | +### RemoveObservedTask |
| 98 | + |
| 99 | +Remove the observed task name so that intermediate results generated by the task are not notified. |
| 100 | + |
| 101 | +```cpp |
| 102 | +void RemoveObservedTask(const char* taskName) |
| 103 | +``` |
| 104 | +
|
| 105 | +**Parameters** |
| 106 | +
|
| 107 | +`[in] taskName` The specified task name. |
| 108 | +
|
| 109 | +### IsTaskObserved |
| 110 | +
|
| 111 | +Determines whether the specified task was observed. |
| 112 | +
|
| 113 | +```cpp |
| 114 | +bool IsTaskObserved(const char* taskName) const |
| 115 | +``` |
| 116 | + |
| 117 | +**Parameters** |
| 118 | + |
| 119 | +`[in] taskName` The specified task name. |
| 120 | + |
| 121 | +**Return value** |
| 122 | + |
| 123 | +Returns a boolean value indicating whether the specified task was observed. |
| 124 | + |
| 125 | +### SetResultUnitTypesOnlyForInput |
| 126 | + |
| 127 | +Set the type of intermediate result unit that indicates skipping default calculations and replacing with input data units. |
| 128 | + |
| 129 | +```cpp |
| 130 | +virtual void SetResultUnitTypesOnlyForInput(unsigned long long types) = 0; |
| 131 | +``` |
| 132 | +
|
| 133 | +**Parameters** |
| 134 | +
|
| 135 | +`types`: The type of intermediate result unit that serves as the combination value of `IntermediateResultUnitType`. |
| 136 | +
|
| 137 | +### GetResultUnitTypesOnlyForInput |
| 138 | +
|
| 139 | +Gets the type of intermediate result unit that indicates skipping default calculations and replacing with input data units. |
| 140 | +
|
| 141 | +```cpp |
| 142 | +virtual unsigned long long GetResultUnitTypesOnlyForInput() const = 0; |
| 143 | +``` |
| 144 | + |
| 145 | +**Return** |
| 146 | + |
| 147 | +Returns the type of intermediate result unit that serves as the combination value of `IntermediateResultUnitType`. |
| 148 | + |
| 149 | +### IsResultUnitTypeOnlyForInput |
| 150 | + |
| 151 | +Determines whether the specified type of intermediate result unit indicates skipping default calculations and replacing with input data units. |
| 152 | + |
| 153 | +```cpp |
| 154 | +virtual bool IsResultUnitTypeOnlyForInput(IntermediateResultUnitType type) const = 0; |
| 155 | +``` |
| 156 | +
|
| 157 | +**Parameters** |
| 158 | +
|
| 159 | +`type`: The type of intermediate result unit to check. |
| 160 | +
|
| 161 | +**Return** |
| 162 | +
|
| 163 | +Returns a boolean value indicating whether the specified type of intermediate result unit indicates skipping default calculations and replacing with input data units. |
0 commit comments