FLImaging 7.9.23.2
FLImagingBase/ResultsDef.h
1#pragma once
2
10
11
15namespace FLImaging
16{
26 {
34
42
50
58
66
74
82
90
98
106
114
122
130
138
146
154
162
170
178
186
194
202
210
218
226
234
242
250
258
266
274
282
290
298
306
314
322
330
338
346
354
362
370
378
386
394
402
410
418
426
434
442
450
458
466
474
482
490
498
506
514
522
530
538
539
547
555
563
571
579
587
595
603
611
619
627
635
643
651
659
667
675
683
691
699
707
715
723
731
739
747
755
763
771
779
787
795
803
811
819
827
835
843
851
859
867
875
883
891
899
907
915
923
931
939
947
955
963
971
972
980
981
989
997
1005
1013
1021
1029
1037
1045
1053
1061
1069
1077
1085
1093
1101
1109
1117
1125
1133
1141
1149
1157
1165
1173
1181
1189
1197
1205
1213
1221
1229
1237
1245
1253
1261
1269
1277
1285
1293
1301
1309
1317
1325
1333
1341
1349
1357
1365
1373
1381
1389
1397
1405
1413
1414
1416
1424 };
1425
1426 static const wchar_t* g_arrWcsResultMessage[] =
1427 {
1428 L"[UnknownError]",
1429 L"[OK]",
1430 L"[PartialOK]",
1431 L"[FailedToInitialize]",
1432 L"[FailedToTerminate]",
1433 L"[NeedToInitialize]",
1434 L"[NeedToTerminate]",
1435 L"[FailedToCreateThread]",
1436 L"[FailedToSuspendThread]",
1437 L"[FailedToResumeThread]",
1438 L"[FailedToCreateDevice]",
1439 L"[FailedToCreateKernelObject]",
1440 L"[FailedToCreateObject]",
1441 L"[InvalidParameter]",
1442 L"[NullPointer]",
1443 L"[NotEnoughMemory]",
1444 L"[BufferDoesNotExist]",
1445 L"[NoData]",
1446 L"[OutOfRange]",
1447 L"[NoResult]",
1448 L"[EmptyElement]",
1449 L"[InvalidHandle]",
1450 L"[FailedToModify]",
1451 L"[InvalidItem]",
1452 L"[LackOfBasicData]",
1453 L"[ZeroSize]",
1454 L"[CountMismatch]",
1455 L"[InvalidData]",
1456 L"[FailedToOpen]",
1457 L"[FailedToRead]",
1458 L"[FailedToWrite]",
1459 L"[InvalidFile]",
1460 L"[FailedToSend]",
1461 L"[FailedToReceive]",
1462 L"[FailedToBind]",
1463 L"[FailedToListen]",
1464 L"[FailedToConnect]",
1465 L"[FailedToSetParam]",
1466 L"[FailedToProcess]",
1467 L"[UnsupportedDepth]",
1468 L"[UnsupportedChannels]",
1469 L"[Timeout]",
1470 L"[UnsupportedVersion]",
1471 L"[InvalidObject]",
1472 L"[DifferentChannel]",
1473 L"[DifferentDepth]",
1474 L"[UnsupportedRegionOfInterest]",
1475 L"[DidNotImplement]",
1476 L"[UnsupportedFormat]",
1477 L"[FileNotFound]",
1478 L"[ClassTypeDoesNotMatch]",
1479 L"[CouldNotFindLicense]",
1480 L"[DifferentType]",
1481 L"[CouldNotFind]",
1482 L"[UnsupportedFunction]",
1483 L"[TooSmall]",
1484 L"[NotEnoughMappingData]",
1485 L"[CanBeInaccurate]",
1486 L"[FailedToExecute]",
1487 L"[FailedToCalculate]",
1488 L"[UnsupportedType]",
1489 L"[DifferentTemplate]",
1490 L"[InvalidElement]",
1491 L"[NoCollision]",
1492 L"[FailedToFind]",
1493 L"[FailedToLoad]",
1494 L"[FailedToCreate]",
1495 L"[FailedToSearch]",
1496 L"[FailedToStop]",
1497 L"[LearnedImageDoesNotExist]",
1498 L"[UnsupportedTypeOfROI]",
1499 L"[ImageDoesNotExist]",
1500 L"[InvalidROI]",
1501 L"[DoesNotIntersect]",
1502 L"[FailedToCreateAlgorithm]",
1503 L"[FailedToCreateImage]",
1504 L"[FailedToCopyImage]",
1505 L"[FailedToLearn]",
1506 L"[FailedToDecode]",
1507 L"[FailedToEncode]",
1508 L"[DifferentFormat]",
1509 L"[FailedToAutoDetect]",
1510 L"[NeedToStop]",
1511 L"[NeedToLoadDLL]",
1512 L"[NeedToGrabOrLive]",
1513 L"[FailedToReadFromDevice]",
1514 L"[FailedToReadFromParameter]",
1515 L"[FailedToWriteToDevice]",
1516 L"[FailedToWriteToParameter]",
1517 L"[LiveStatus]",
1518 L"[FailedToGrab]",
1519 L"[FailedToLive]",
1520 L"[CouldNotFindModules]",
1521 L"[GdiObjectCapacityIsFull]",
1522 L"[AlreadyCreated]",
1523 L"[DifferentSize]",
1524 L"[CouldNotFindFunction]",
1525 L"[CouldNotFindVariable]",
1526 L"[SyntaxError]",
1527 L"[InvalidVariable]",
1528 L"[UnsupportedProcessingUnit]",
1529 L"[HigherLicenseRequired]",
1530 L"[CudaVersionMismatched]",
1531 L"[Cancel]",
1532 L"[BrokenData]",
1533 L"[NotCompressedData]",
1534 L"[NotPlainData]",
1535 L"[UnsupportedOperatingSystem]",
1536 L"[Undefined]",
1537 L"[InvalidLabel]",
1538 L"[ThereIsNoRegion]",
1539 L"[FailedToFindView]",
1540 L"[Stop]",
1541 L"[Abort]",
1542 L"[InvalidSize]",
1543 L"[NeedToLearn]",
1544 L"[CouldNotFindDevice]",
1545 L"[NotSquareImage]",
1546 L"[AlreadyRunning]",
1547 L"[BroadcastFailure]",
1548 L"[InvalidShape]",
1549 L"[ShapeMismatched]",
1550 L"[InvalidDevice]",
1551 L"[InvalidComputationalGraph]",
1552 L"[FailedToMeasure]",
1553 L"[Busy]",
1554 L"[FailedToLogIn]",
1555 L"[DoesNotExist]",
1556 L"[PermissionDenied]",
1557 L"[InvalidKey]",
1558 L"[AlreadyExists]",
1559 L"[UndefinedCudaErrorCode]",
1560 L"[UnsupportedFigure]",
1561 L"[InvalidFigure]",
1562 L"[NeedToUpdate]",
1563 L"[CudaFailure]",
1564 L"[UnsupportedDevice]",
1565 L"[AlreadyInitialized]",
1566 L"[NeedToRun]",
1567 L"[NeedToExecute]",
1568 L"[NeedToConnect]",
1569 L"[NeedToDisconnect]",
1570 L"[NeedToLoad]",
1571 L"[NeedToSave]",
1572 L"[NeedToModify]",
1573 L"[NeedToValidate]",
1574 L"[NeedToLogIn]",
1575 L"[NeedToLogOut]",
1576 L"[NoUpdate]",
1577 L"[NotEmpty]",
1578 L"[NotReady]",
1579 L"[FailedToDelete]",
1580 L"[NumberExceeded]",
1581 L"[ParameterMissing]",
1582 L"[NotEnoughSpace]",
1583 L"[UnsupportedHardware]",
1584 L"[UnsupportedModule]",
1585 L"[Mismatched]",
1586 L"[PositiveNotAllowed]",
1587 L"[NegativeNotAllowed]",
1588 L"[ZeroNotAllowed]",
1589 L"[IncorrectPassword]",
1590 L"[InvalidView]",
1591 L"[AlreadyInUse]",
1592 L"[DeviceAlreadyInUse]",
1593 L"[DataFileNotFound]",
1594 L"[NeedToCalibrate]",
1595 L"[FailedToCalibrate]",
1596 L"[FullOfCapacity]",
1597 L"[IncompatibleMode]",
1598 L"[HipVersionMismatched]",
1599 L"[UndefinedHipErrorCode]",
1600 L"[HipFailure]",
1601 };
1602
1603 static_assert((sizeof(g_arrWcsResultMessage) / sizeof(wchar_t*)) == ((int32_t)EResult_COUNT + 1), "Count mismatched between enumeration and string array.");
1604
1618 inline bool IsOK(const EResult eResult)
1619 {
1620 return EResult_OK == eResult || eResult == EResult_PartialOK;
1621 }
1622
1636 inline bool IsStrictOK(const EResult eResult)
1637 {
1638 return EResult_OK == eResult;
1639 }
1640
1654 inline bool IsFail(const EResult eResult)
1655 {
1656 return EResult_OK != eResult && eResult != EResult_PartialOK;
1657 }
1658
1672 inline bool IsStrictFail(const EResult eResult)
1673 {
1674 return EResult_OK != eResult;
1675 }
1676
1690 inline const wchar_t* GetResultString(const EResult eResult)
1691 {
1692 return ((int32_t)eResult >= -1 && eResult < EResult_COUNT) ? (g_arrWcsResultMessage[((int32_t)eResult) + 1]) : nullptr;
1693 }
1694
1695
1703 class FL_EXPORT CResult
1704 {
1705 public:
1714 {
1715 m_eResult = EResult_UnknownError;
1716 }
1717
1729 CResult(const CResult& res)
1730 {
1731 m_eResult = res.m_eResult;
1732 }
1733
1745 CResult(const EResult eResult)
1746 {
1747 m_eResult = eResult;
1748 }
1749
1763 const CResult& operator=(const CResult& res)
1764 {
1765 Assign(res);
1766 return *this;
1767 }
1768
1784 const CResult& operator=(const EResult eResult)
1785 {
1786 Assign(eResult);
1787 return *this;
1788 }
1789
1803 bool operator==(const CResult& res) const
1804 {
1805 return Equal(res.m_eResult);
1806 }
1807
1821 bool operator==(const EResult eResult) const
1822 {
1823 return Equal(eResult);
1824 }
1825
1839 bool operator!=(const CResult& res) const
1840 {
1841 return !Equal(res.m_eResult);
1842 }
1843
1857 bool operator!=(const EResult eResult) const
1858 {
1859 return !Equal(eResult);
1860 }
1861
1873 operator EResult() const
1874 {
1875 return m_eResult;
1876 }
1877
1887 operator bool() const
1888 {
1889 return IsOK();
1890 }
1891
1901 operator int32_t() const
1902 {
1903 return (int32_t)m_eResult;
1904 }
1905
1915 operator uint32_t() const
1916 {
1917 return (uint32_t)m_eResult;
1918 }
1919
1929 operator int64_t() const
1930 {
1931 return (int64_t)m_eResult;
1932 }
1933
1943 operator uint64_t() const
1944 {
1945 return (uint64_t)m_eResult;
1946 }
1947
1961 bool Assign(const CResult& res)
1962 {
1963 m_eResult = res.m_eResult;
1964 return true;
1965 }
1966
1980 bool Assign(const EResult eResult)
1981 {
1982 m_eResult = eResult;
1983 return true;
1984 }
1985
1999 bool Equal(const CResult& res) const
2000 {
2001 return m_eResult == res.m_eResult;
2002 }
2003
2017 bool Equal(const EResult eResult) const
2018 {
2019 return m_eResult == eResult;
2020 }
2021
2031 virtual bool IsOK() const
2032 {
2033 return EResult_OK == m_eResult || m_eResult == EResult_PartialOK;
2034 }
2035
2045 virtual bool IsStrictOK() const
2046 {
2047 return EResult_OK == m_eResult;
2048 }
2049
2059 virtual bool IsFail() const
2060 {
2061 return EResult_OK != m_eResult && m_eResult != EResult_PartialOK;
2062 }
2063
2073 virtual bool IsStrictFail() const
2074 {
2075 return EResult_OK != m_eResult;
2076 }
2077
2087 virtual int32_t GetResultCode() const
2088 {
2089 return (int32_t)m_eResult;
2090 }
2091
2101 virtual const wchar_t* GetString() const
2102 {
2103 return ((int32_t)m_eResult >= -1 && m_eResult < EResult_COUNT) ? (g_arrWcsResultMessage[((int32_t)m_eResult) + 1]) : nullptr;
2104 }
2105
2117 virtual EResult GetResult() const
2118 {
2119 return m_eResult;
2120 }
2121
2139 friend bool operator==(const EResult eResult, const CResult& res)
2140 {
2141 return res.Equal(eResult);
2142 }
2143
2161 friend bool operator!=(const EResult eResult, const CResult& res)
2162 {
2163 return !res.Equal(eResult);
2164 }
2165
2166 protected:
2167 EResult m_eResult;
2168 };
2169}
2170
2171#if !defined(__clang__)
2172 #pragma make_public(FLImaging::CResult)
2173 #pragma make_public(FLImaging::EResult)
2174#endif
bool operator==(const EResult eResult) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1821
bool Equal(const CResult &res) const
Compare CResult object.
Definition FLImagingBase/ResultsDef.h:1999
CResult(const CResult &res)
Copy constructor.
Definition FLImagingBase/ResultsDef.h:1729
bool operator==(const CResult &res) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1803
virtual bool IsStrictFail() const
Check the failure. If the result is not OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:2073
bool Equal(const EResult eResult) const
Compare CResult object.
Definition FLImagingBase/ResultsDef.h:2017
virtual bool IsStrictOK() const
Check the success. If the result is OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:2045
friend bool operator!=(const EResult eResult, const CResult &res)
Comparison operator.
Definition FLImagingBase/ResultsDef.h:2161
bool operator!=(const EResult eResult) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1857
virtual const wchar_t * GetString() const
Get the result string.
Definition FLImagingBase/ResultsDef.h:2101
CResult()
Default constructor.
Definition FLImagingBase/ResultsDef.h:1713
friend bool operator==(const EResult eResult, const CResult &res)
Comparison operator.
Definition FLImagingBase/ResultsDef.h:2139
bool Assign(const EResult eResult)
Assign CResult object.
Definition FLImagingBase/ResultsDef.h:1980
virtual int32_t GetResultCode() const
Returns the result code.
Definition FLImagingBase/ResultsDef.h:2087
const CResult & operator=(const EResult eResult)
Assign operator.
Definition FLImagingBase/ResultsDef.h:1784
CResult(const EResult eResult)
Copy constructor.
Definition FLImagingBase/ResultsDef.h:1745
virtual bool IsFail() const
Check the failure. If the result is not OK or PartialOK, it returns true. otherwise,...
Definition FLImagingBase/ResultsDef.h:2059
bool Assign(const CResult &res)
Assign CResult object.
Definition FLImagingBase/ResultsDef.h:1961
virtual EResult GetResult() const
Result return enum.
Definition FLImagingBase/ResultsDef.h:2117
bool operator!=(const CResult &res) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1839
const CResult & operator=(const CResult &res)
Assign operator.
Definition FLImagingBase/ResultsDef.h:1763
virtual bool IsOK() const
Check the success. If the result is OK or PartialOK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:2031
EResult
Result.
Definition FLImagingBase/ResultsDef.h:26
@ EResult_DifferentSize
Different size.
Definition FLImagingBase/ResultsDef.h:794
@ EResult_Abort
Abort.
Definition FLImagingBase/ResultsDef.h:938
@ EResult_CouldNotFindLicense
Could not find license.
Definition FLImagingBase/ResultsDef.h:441
@ EResult_InvalidView
Invalid View.
Definition FLImagingBase/ResultsDef.h:1332
@ EResult_InvalidHandle
Invalid handle.
Definition FLImagingBase/ResultsDef.h:201
@ EResult_BrokenData
Broken data.
Definition FLImagingBase/ResultsDef.h:866
@ EResult_LackOfBasicData
Lack of basic data.
Definition FLImagingBase/ResultsDef.h:225
@ EResult_NegativeNotAllowed
Negative Not Allowed.
Definition FLImagingBase/ResultsDef.h:1308
@ EResult_FailedToSuspendThread
Failed to suspend thread.
Definition FLImagingBase/ResultsDef.h:97
@ EResult_InvalidFigure
Invalid figure.
Definition FLImagingBase/ResultsDef.h:1100
@ EResult_BroadcastFailure
Broadcast Failure.
Definition FLImagingBase/ResultsDef.h:988
@ EResult_FailedToMeasure
Failed to measure.
Definition FLImagingBase/ResultsDef.h:1028
@ EResult_InvalidItem
Invalid item.
Definition FLImagingBase/ResultsDef.h:217
@ EResult_FailedToCreateAlgorithm
Failed to create algorithm.
Definition FLImagingBase/ResultsDef.h:626
@ EResult_HigherLicenseRequired
Higher license required.
Definition FLImagingBase/ResultsDef.h:842
@ EResult_FailedToLive
Failed to live.
Definition FLImagingBase/ResultsDef.h:762
@ EResult_FailedToLogIn
Failed to log in.
Definition FLImagingBase/ResultsDef.h:1044
@ EResult_Busy
Busy.
Definition FLImagingBase/ResultsDef.h:1036
@ EResult_AlreadyInitialized
Already Initialized.
Definition FLImagingBase/ResultsDef.h:1132
@ EResult_NoResult
No result.
Definition FLImagingBase/ResultsDef.h:185
@ EResult_FailedToWrite
Failed to write.
Definition FLImagingBase/ResultsDef.h:273
@ EResult_IncorrectPassword
Incorrect Password.
Definition FLImagingBase/ResultsDef.h:1324
@ EResult_UnsupportedVersion
Unsupported version.
Definition FLImagingBase/ResultsDef.h:369
@ EResult_UnsupportedChannels
Unsupported channels.
Definition FLImagingBase/ResultsDef.h:353
@ EResult_NeedToTerminate
Need to terminate.
Definition FLImagingBase/ResultsDef.h:81
@ EResult_NeedToValidate
Need To Validate.
Definition FLImagingBase/ResultsDef.h:1196
@ EResult_NoData
No data.
Definition FLImagingBase/ResultsDef.h:169
@ EResult_PositiveNotAllowed
Positive Not Allowed.
Definition FLImagingBase/ResultsDef.h:1300
@ EResult_OutOfRange
Out of range.
Definition FLImagingBase/ResultsDef.h:177
@ EResult_UnsupportedOperatingSystem
Unsupported operating system.
Definition FLImagingBase/ResultsDef.h:890
@ EResult_NeedToLoad
Need To Load.
Definition FLImagingBase/ResultsDef.h:1172
@ EResult_FailedToEncode
Failed to encode.
Definition FLImagingBase/ResultsDef.h:666
@ EResult_CouldNotFindFunction
Could not find function.
Definition FLImagingBase/ResultsDef.h:802
@ EResult_NeedToInitialize
Need to initialize.
Definition FLImagingBase/ResultsDef.h:73
@ EResult_FailedToWriteToDevice
Failed to write to device.
Definition FLImagingBase/ResultsDef.h:730
@ EResult_AlreadyCreated
Already created.
Definition FLImagingBase/ResultsDef.h:786
@ EResult_PermissionDenied
Permission denied.
Definition FLImagingBase/ResultsDef.h:1060
@ EResult_NeedToLoadDLL
Need to load dll.
Definition FLImagingBase/ResultsDef.h:698
@ EResult_CouldNotFindDevice
Could not find device.
Definition FLImagingBase/ResultsDef.h:962
@ EResult_NoUpdate
No Update.
Definition FLImagingBase/ResultsDef.h:1220
@ EResult_Mismatched
Mismatched.
Definition FLImagingBase/ResultsDef.h:1292
@ EResult_AlreadyInUse
Already In Use.
Definition FLImagingBase/ResultsDef.h:1340
@ EResult_NullPointer
Null pointer.
Definition FLImagingBase/ResultsDef.h:145
@ EResult_ImageDoesNotExist
Image does not exist.
Definition FLImagingBase/ResultsDef.h:602
@ EResult_FailedToSetParam
Failed to set param.
Definition FLImagingBase/ResultsDef.h:329
@ EResult_UnsupportedFormat
Unsupported format.
Definition FLImagingBase/ResultsDef.h:417
@ EResult_ThereIsNoRegion
There is no region.
Definition FLImagingBase/ResultsDef.h:914
@ EResult_UnsupportedFigure
Unsupported figure.
Definition FLImagingBase/ResultsDef.h:1092
@ EResult_UnsupportedDepth
Unsupported depth.
Definition FLImagingBase/ResultsDef.h:345
@ EResult_CouldNotFind
Could not find.
Definition FLImagingBase/ResultsDef.h:457
@ EResult_FullOfCapacity
Full of capacity.
Definition FLImagingBase/ResultsDef.h:1380
@ EResult_NeedToExecute
Need To Execute.
Definition FLImagingBase/ResultsDef.h:1148
@ EResult_FailedToWriteToParameter
Failed to write to parameter.
Definition FLImagingBase/ResultsDef.h:738
@ EResult_InvalidSize
Invalid size.
Definition FLImagingBase/ResultsDef.h:946
@ EResult_UnsupportedDevice
Unsupported device.
Definition FLImagingBase/ResultsDef.h:1124
@ EResult_NotReady
Not Ready.
Definition FLImagingBase/ResultsDef.h:1236
@ EResult_InvalidVariable
Invalid variable.
Definition FLImagingBase/ResultsDef.h:826
@ EResult_InvalidLabel
Invalid label.
Definition FLImagingBase/ResultsDef.h:906
@ EResult_CouldNotFindVariable
Could not find variable.
Definition FLImagingBase/ResultsDef.h:810
@ EResult_InvalidDevice
Invalid Device.
Definition FLImagingBase/ResultsDef.h:1012
@ EResult_InvalidData
Invalid data.
Definition FLImagingBase/ResultsDef.h:249
@ EResult_InvalidObject
Invalid object.
Definition FLImagingBase/ResultsDef.h:377
@ EResult_PartialOK
Partial OK.
Definition FLImagingBase/ResultsDef.h:49
@ EResult_NeedToRun
Need To Run.
Definition FLImagingBase/ResultsDef.h:1140
@ EResult_FailedToResumeThread
Failed to resume thread.
Definition FLImagingBase/ResultsDef.h:105
@ EResult_BufferDoesNotExist
Buffer does not exist.
Definition FLImagingBase/ResultsDef.h:161
@ EResult_NotEnoughMemory
Not enough memory.
Definition FLImagingBase/ResultsDef.h:153
@ EResult_Stop
Stop.
Definition FLImagingBase/ResultsDef.h:930
@ EResult_FailedToReadParameter
Failed to read parameter.
Definition FLImagingBase/ResultsDef.h:722
@ EResult_InvalidFile
Invalid file.
Definition FLImagingBase/ResultsDef.h:281
@ EResult_FailedToCreateObject
Failed to create object.
Definition FLImagingBase/ResultsDef.h:129
@ EResult_CanBeInaccurate
Can be inaccurate.
Definition FLImagingBase/ResultsDef.h:489
@ EResult_ClassTypeDoesNotMatch
Class type does not match.
Definition FLImagingBase/ResultsDef.h:433
@ EResult_DifferentDepth
Different depth.
Definition FLImagingBase/ResultsDef.h:393
@ EResult_UnsupportedHardware
Unsupported Hardware.
Definition FLImagingBase/ResultsDef.h:1276
@ EResult_CountMismatch
Count mismatch.
Definition FLImagingBase/ResultsDef.h:241
@ EResult_EmptyElement
Empty element.
Definition FLImagingBase/ResultsDef.h:193
@ EResult_FailedToGrab
Failed to grab.
Definition FLImagingBase/ResultsDef.h:754
@ EResult_AlreadyExists
Already exists.
Definition FLImagingBase/ResultsDef.h:1076
@ EResult_NotEnoughSpace
Not Enough Space.
Definition FLImagingBase/ResultsDef.h:1268
@ EResult_ZeroSize
Zero size.
Definition FLImagingBase/ResultsDef.h:233
@ EResult_TooSmall
Too small.
Definition FLImagingBase/ResultsDef.h:473
@ EResult_UnknownError
Unknown error.
Definition FLImagingBase/ResultsDef.h:33
@ EResult_FailedToSend
Failed to send.
Definition FLImagingBase/ResultsDef.h:289
@ EResult_OK
OK.
Definition FLImagingBase/ResultsDef.h:41
@ EResult_NeedToGrabOrLive
Need to grab or live.
Definition FLImagingBase/ResultsDef.h:706
@ EResult_FailedToReceive
Failed to receive.
Definition FLImagingBase/ResultsDef.h:297
@ EResult_CudaVersionMismatched
Cuda version mismatched.
Definition FLImagingBase/ResultsDef.h:850
@ EResult_NeedToModify
Need To Modify.
Definition FLImagingBase/ResultsDef.h:1188
@ EResult_FailedToReadFromDevice
Failed to read from device.
Definition FLImagingBase/ResultsDef.h:714
@ EResult_FailedToDecode
Failed to decode.
Definition FLImagingBase/ResultsDef.h:658
@ EResult_NeedToStop
Need to stop.
Definition FLImagingBase/ResultsDef.h:690
@ EResult_DoesNotIntersect
Does not intersect.
Definition FLImagingBase/ResultsDef.h:618
@ EResult_FailedToLearn
Failed to learn.
Definition FLImagingBase/ResultsDef.h:650
@ EResult_UnsupportedProcessingUnit
Unsupported processing unit.
Definition FLImagingBase/ResultsDef.h:834
@ EResult_FailedToListen
Failed to listen.
Definition FLImagingBase/ResultsDef.h:313
@ EResult_FailedToConnect
Failed to connect.
Definition FLImagingBase/ResultsDef.h:321
@ EResult_NotEnoughMappingData
Not enough mapping data.
Definition FLImagingBase/ResultsDef.h:481
@ EResult_FailedToAutoDetect
Failed to auot detect.
Definition FLImagingBase/ResultsDef.h:682
@ EResult_UnsupportedModule
Unsupported Module.
Definition FLImagingBase/ResultsDef.h:1284
@ EResult_UnsupportedType
Unsupported type.
Definition FLImagingBase/ResultsDef.h:513
@ EResult_FailedToRead
Failed to read.
Definition FLImagingBase/ResultsDef.h:265
@ EResult_DeviceAlreadyInUse
Device Already In Use.
Definition FLImagingBase/ResultsDef.h:1348
@ EResult_Timeout
Timeout.
Definition FLImagingBase/ResultsDef.h:361
@ EResult_InvalidParameter
Invalid parameter.
Definition FLImagingBase/ResultsDef.h:137
@ EResult_NeedToLogOut
Need To Log Out.
Definition FLImagingBase/ResultsDef.h:1212
@ EResult_NotEmpty
Not Empty.
Definition FLImagingBase/ResultsDef.h:1228
@ EResult_GdiObjectCapacityIsFull
Gdi object capacity is full.
Definition FLImagingBase/ResultsDef.h:778
@ EResult_FailedToCreateKernelObject
Failed to create kernel object.
Definition FLImagingBase/ResultsDef.h:121
@ EResult_FailedToCreateImage
Failed to create image.
Definition FLImagingBase/ResultsDef.h:634
@ EResult_COUNT
Total result code count.
Definition FLImagingBase/ResultsDef.h:1423
@ EResult_FailedToFind
Failed to find.
Definition FLImagingBase/ResultsDef.h:546
@ EResult_FailedToCopyImage
Failed to copy image.
Definition FLImagingBase/ResultsDef.h:642
@ EResult_DataFileNotFound
Data File Not Found.
Definition FLImagingBase/ResultsDef.h:1356
@ EResult_SyntaxError
Syntax error.
Definition FLImagingBase/ResultsDef.h:818
@ EResult_UnsupportedRegionOfInterest
Unsupported region of interest.
Definition FLImagingBase/ResultsDef.h:401
@ EResult_NumberExceeded
Number Exceeded.
Definition FLImagingBase/ResultsDef.h:1252
@ EResult_HipVersionMismatched
Hip version mismatched.
Definition FLImagingBase/ResultsDef.h:1396
@ EResult_InvalidKey
Invalid Key.
Definition FLImagingBase/ResultsDef.h:1068
@ EResult_ZeroNotAllowed
Zero Not Allowed.
Definition FLImagingBase/ResultsDef.h:1316
@ EResult_InvalidShape
Invalid Shape.
Definition FLImagingBase/ResultsDef.h:996
@ EResult_ShapeMismatched
Shape Mismatched.
Definition FLImagingBase/ResultsDef.h:1004
@ EResult_InvalidElement
Invalid element.
Definition FLImagingBase/ResultsDef.h:529
@ EResult_NotPlainData
Not plain data.
Definition FLImagingBase/ResultsDef.h:882
@ EResult_UndefinedHipErrorCode
Hip error code not defined in the library.
Definition FLImagingBase/ResultsDef.h:1404
@ EResult_FailedToStop
Failed to stop.
Definition FLImagingBase/ResultsDef.h:578
@ EResult_FailedToDelete
Failed to delete.
Definition FLImagingBase/ResultsDef.h:1244
@ EResult_Cancel
Cancel.
Definition FLImagingBase/ResultsDef.h:858
@ EResult_NeedToLogIn
Need To Log In.
Definition FLImagingBase/ResultsDef.h:1204
@ EResult_FailedToTerminate
Failed to terminate.
Definition FLImagingBase/ResultsDef.h:65
@ EResult_FailedToInitialize
Failed to initialize.
Definition FLImagingBase/ResultsDef.h:57
@ EResult_FailedToBind
Failed to bind.
Definition FLImagingBase/ResultsDef.h:305
@ EResult_AlreadyRunning
Already running.
Definition FLImagingBase/ResultsDef.h:979
@ EResult_FailedToCreateDevice
Failed to create device.
Definition FLImagingBase/ResultsDef.h:113
@ EResult_InvalidComputationalGraph
Invalid Computational Graph.
Definition FLImagingBase/ResultsDef.h:1020
@ EResult_HipFailure
Hip failure.
Definition FLImagingBase/ResultsDef.h:1412
@ EResult_DifferentType
Different type.
Definition FLImagingBase/ResultsDef.h:449
@ EResult_FailedToCreate
Failed to create.
Definition FLImagingBase/ResultsDef.h:562
@ EResult_LearnedImageDoesNotExist
Learned image does not exist.
Definition FLImagingBase/ResultsDef.h:586
@ EResult_FailedToSearch
Failed to search.
Definition FLImagingBase/ResultsDef.h:570
@ EResult_NeedToDisconnect
Need To Disconnect.
Definition FLImagingBase/ResultsDef.h:1164
@ EResult_UnsupportedTypeOfROI
Unsupported type of ROI.
Definition FLImagingBase/ResultsDef.h:594
@ EResult_NoCollision
No collision.
Definition FLImagingBase/ResultsDef.h:537
@ EResult_NeedToCalibrate
Need to calibrate.
Definition FLImagingBase/ResultsDef.h:1364
@ EResult_FailedToExecute
Failed to execute.
Definition FLImagingBase/ResultsDef.h:497
@ EResult_FailedToModify
Failed to modify.
Definition FLImagingBase/ResultsDef.h:209
@ EResult_DoesNotExist
Does not exist.
Definition FLImagingBase/ResultsDef.h:1052
@ EResult_NotSquareImage
It is not square image.
Definition FLImagingBase/ResultsDef.h:970
@ EResult_FailedToProcess
Failed to process.
Definition FLImagingBase/ResultsDef.h:337
@ EResult_DifferentChannel
Different channel.
Definition FLImagingBase/ResultsDef.h:385
@ EResult_NeedToConnect
Need To Connect.
Definition FLImagingBase/ResultsDef.h:1156
@ EResult_DifferentFormat
Different format.
Definition FLImagingBase/ResultsDef.h:674
@ EResult_FailedToLoad
Failed to load.
Definition FLImagingBase/ResultsDef.h:554
@ EResult_DidNotImplement
Did not implement.
Definition FLImagingBase/ResultsDef.h:409
@ EResult_NeedToLearn
Need to learn.
Definition FLImagingBase/ResultsDef.h:954
@ EResult_Undefined
Undefined.
Definition FLImagingBase/ResultsDef.h:898
@ EResult_UndefinedCudaErrorCode
Cuda error code not defined in the library.
Definition FLImagingBase/ResultsDef.h:1084
@ EResult_FailedToFindView
Failed to find view.
Definition FLImagingBase/ResultsDef.h:922
@ EResult_NotCompressedData
Not compressed data.
Definition FLImagingBase/ResultsDef.h:874
@ EResult_DifferentTemplate
Different template.
Definition FLImagingBase/ResultsDef.h:521
@ EResult_CudaFailure
Cuda failure.
Definition FLImagingBase/ResultsDef.h:1116
@ EResult_LiveStatus
Live status.
Definition FLImagingBase/ResultsDef.h:746
@ EResult_FailedToOpen
Failed to open.
Definition FLImagingBase/ResultsDef.h:257
@ EResult_UnsupportedFunction
Unsupported function.
Definition FLImagingBase/ResultsDef.h:465
@ EResult_ParameterMissing
Parameter Missing.
Definition FLImagingBase/ResultsDef.h:1260
@ EResult_NeedToUpdate
Need to update.
Definition FLImagingBase/ResultsDef.h:1108
@ EResult_FailedToCalculate
Failed to calculate.
Definition FLImagingBase/ResultsDef.h:505
@ EResult_CouldNotFindModules
Could not find modules.
Definition FLImagingBase/ResultsDef.h:770
@ EResult_FailedToCreateThread
Failed to create thread.
Definition FLImagingBase/ResultsDef.h:89
@ EResult_NeedToSave
Need To Save.
Definition FLImagingBase/ResultsDef.h:1180
@ EResult_FileNotFound
File not found.
Definition FLImagingBase/ResultsDef.h:425
@ EResult_InvalidROI
Invalid ROI.
Definition FLImagingBase/ResultsDef.h:610
@ EResult_FailedToCalibrate
Failed to calibrate.
Definition FLImagingBase/ResultsDef.h:1372
@ EResult_IncompatibleMode
Incompatible mode.
Definition FLImagingBase/ResultsDef.h:1388
bool IsOK(const EResult eResult)
Check the success. If the result is OK or PartialOK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:1618
bool IsStrictOK(const EResult eResult)
Check the success. If the result is OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:1636
bool IsFail(const EResult eResult)
Check the failure. If the result is not OK or PartialOK, it returns true. otherwise,...
Definition FLImagingBase/ResultsDef.h:1654
const wchar_t * GetResultString(const EResult eResult)
Get the result string.
Definition FLImagingBase/ResultsDef.h:1690
bool IsStrictFail(const EResult eResult)
Check the failure. If the result is not OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:1672