FLImaging 7.11.11.11
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
1421
1423
1431 };
1432
1433 static const wchar_t* g_arrWcsResultMessage[] =
1434 {
1435 L"[UnknownError]",
1436 L"[OK]",
1437 L"[PartialOK]",
1438 L"[FailedToInitialize]",
1439 L"[FailedToTerminate]",
1440 L"[NeedToInitialize]",
1441 L"[NeedToTerminate]",
1442 L"[FailedToCreateThread]",
1443 L"[FailedToSuspendThread]",
1444 L"[FailedToResumeThread]",
1445 L"[FailedToCreateDevice]",
1446 L"[FailedToCreateKernelObject]",
1447 L"[FailedToCreateObject]",
1448 L"[InvalidParameter]",
1449 L"[NullPointer]",
1450 L"[NotEnoughMemory]",
1451 L"[BufferDoesNotExist]",
1452 L"[NoData]",
1453 L"[OutOfRange]",
1454 L"[NoResult]",
1455 L"[EmptyElement]",
1456 L"[InvalidHandle]",
1457 L"[FailedToModify]",
1458 L"[InvalidItem]",
1459 L"[LackOfBasicData]",
1460 L"[ZeroSize]",
1461 L"[CountMismatch]",
1462 L"[InvalidData]",
1463 L"[FailedToOpen]",
1464 L"[FailedToRead]",
1465 L"[FailedToWrite]",
1466 L"[InvalidFile]",
1467 L"[FailedToSend]",
1468 L"[FailedToReceive]",
1469 L"[FailedToBind]",
1470 L"[FailedToListen]",
1471 L"[FailedToConnect]",
1472 L"[FailedToSetParam]",
1473 L"[FailedToProcess]",
1474 L"[UnsupportedDepth]",
1475 L"[UnsupportedChannels]",
1476 L"[Timeout]",
1477 L"[UnsupportedVersion]",
1478 L"[InvalidObject]",
1479 L"[DifferentChannel]",
1480 L"[DifferentDepth]",
1481 L"[UnsupportedRegionOfInterest]",
1482 L"[DidNotImplement]",
1483 L"[UnsupportedFormat]",
1484 L"[FileNotFound]",
1485 L"[ClassTypeDoesNotMatch]",
1486 L"[CouldNotFindLicense]",
1487 L"[DifferentType]",
1488 L"[CouldNotFind]",
1489 L"[UnsupportedFunction]",
1490 L"[TooSmall]",
1491 L"[NotEnoughMappingData]",
1492 L"[CanBeInaccurate]",
1493 L"[FailedToExecute]",
1494 L"[FailedToCalculate]",
1495 L"[UnsupportedType]",
1496 L"[DifferentTemplate]",
1497 L"[InvalidElement]",
1498 L"[NoCollision]",
1499 L"[FailedToFind]",
1500 L"[FailedToLoad]",
1501 L"[FailedToCreate]",
1502 L"[FailedToSearch]",
1503 L"[FailedToStop]",
1504 L"[LearnedImageDoesNotExist]",
1505 L"[UnsupportedTypeOfROI]",
1506 L"[ImageDoesNotExist]",
1507 L"[InvalidROI]",
1508 L"[DoesNotIntersect]",
1509 L"[FailedToCreateAlgorithm]",
1510 L"[FailedToCreateImage]",
1511 L"[FailedToCopyImage]",
1512 L"[FailedToLearn]",
1513 L"[FailedToDecode]",
1514 L"[FailedToEncode]",
1515 L"[DifferentFormat]",
1516 L"[FailedToAutoDetect]",
1517 L"[NeedToStop]",
1518 L"[NeedToLoadDLL]",
1519 L"[NeedToGrabOrLive]",
1520 L"[FailedToReadFromDevice]",
1521 L"[FailedToReadParameter]",
1522 L"[FailedToWriteToDevice]",
1523 L"[FailedToWriteToParameter]",
1524 L"[LiveStatus]",
1525 L"[FailedToGrab]",
1526 L"[FailedToLive]",
1527 L"[CouldNotFindModules]",
1528 L"[GdiObjectCapacityIsFull]",
1529 L"[AlreadyCreated]",
1530 L"[DifferentSize]",
1531 L"[CouldNotFindFunction]",
1532 L"[CouldNotFindVariable]",
1533 L"[SyntaxError]",
1534 L"[InvalidVariable]",
1535 L"[UnsupportedProcessingUnit]",
1536 L"[HigherLicenseRequired]",
1537 L"[CudaVersionMismatched]",
1538 L"[Cancel]",
1539 L"[BrokenData]",
1540 L"[NotCompressedData]",
1541 L"[NotPlainData]",
1542 L"[UnsupportedOperatingSystem]",
1543 L"[Undefined]",
1544 L"[InvalidLabel]",
1545 L"[ThereIsNoRegion]",
1546 L"[FailedToFindView]",
1547 L"[Stop]",
1548 L"[Abort]",
1549 L"[InvalidSize]",
1550 L"[NeedToLearn]",
1551 L"[CouldNotFindDevice]",
1552 L"[NotSquareImage]",
1553 L"[AlreadyRunning]",
1554 L"[BroadcastFailure]",
1555 L"[InvalidShape]",
1556 L"[ShapeMismatched]",
1557 L"[InvalidDevice]",
1558 L"[InvalidComputationalGraph]",
1559 L"[FailedToMeasure]",
1560 L"[Busy]",
1561 L"[FailedToLogIn]",
1562 L"[DoesNotExist]",
1563 L"[PermissionDenied]",
1564 L"[InvalidKey]",
1565 L"[AlreadyExists]",
1566 L"[UndefinedCudaErrorCode]",
1567 L"[UnsupportedFigure]",
1568 L"[InvalidFigure]",
1569 L"[NeedToUpdate]",
1570 L"[CudaFailure]",
1571 L"[UnsupportedDevice]",
1572 L"[AlreadyInitialized]",
1573 L"[NeedToRun]",
1574 L"[NeedToExecute]",
1575 L"[NeedToConnect]",
1576 L"[NeedToDisconnect]",
1577 L"[NeedToLoad]",
1578 L"[NeedToSave]",
1579 L"[NeedToModify]",
1580 L"[NeedToValidate]",
1581 L"[NeedToLogIn]",
1582 L"[NeedToLogOut]",
1583 L"[NoUpdate]",
1584 L"[NotEmpty]",
1585 L"[NotReady]",
1586 L"[FailedToDelete]",
1587 L"[NumberExceeded]",
1588 L"[ParameterMissing]",
1589 L"[NotEnoughSpace]",
1590 L"[UnsupportedHardware]",
1591 L"[UnsupportedModule]",
1592 L"[Mismatched]",
1593 L"[PositiveNotAllowed]",
1594 L"[NegativeNotAllowed]",
1595 L"[ZeroNotAllowed]",
1596 L"[IncorrectPassword]",
1597 L"[InvalidView]",
1598 L"[AlreadyInUse]",
1599 L"[DeviceAlreadyInUse]",
1600 L"[DataFileNotFound]",
1601 L"[NeedToCalibrate]",
1602 L"[FailedToCalibrate]",
1603 L"[FullOfCapacity]",
1604 L"[IncompatibleMode]",
1605 L"[HipVersionMismatched]",
1606 L"[UndefinedHipErrorCode]",
1607 L"[HipFailure]",
1608 L"[UnsupportedElement]",
1609 };
1610
1611 static_assert((sizeof(g_arrWcsResultMessage) / sizeof(wchar_t*)) == ((int32_t)EResult_COUNT + 1), "Count mismatched between enumeration and string array.");
1612
1626 inline bool IsOK(const EResult eResult)
1627 {
1628 return EResult_OK == eResult || eResult == EResult_PartialOK;
1629 }
1630
1644 inline bool IsStrictOK(const EResult eResult)
1645 {
1646 return EResult_OK == eResult;
1647 }
1648
1662 inline bool IsFail(const EResult eResult)
1663 {
1664 return EResult_OK != eResult && eResult != EResult_PartialOK;
1665 }
1666
1680 inline bool IsStrictFail(const EResult eResult)
1681 {
1682 return EResult_OK != eResult;
1683 }
1684
1698 inline const wchar_t* GetResultString(const EResult eResult)
1699 {
1700 return ((int32_t)eResult >= -1 && eResult < EResult_COUNT) ? (g_arrWcsResultMessage[((int32_t)eResult) + 1]) : nullptr;
1701 }
1702
1703
1711 class FL_EXPORT CResult
1712 {
1713 public:
1722 {
1723 m_eResult = EResult_UnknownError;
1724 }
1725
1737 CResult(const CResult& res)
1738 {
1739 m_eResult = res.m_eResult;
1740 }
1741
1753 CResult(const EResult eResult)
1754 {
1755 m_eResult = eResult;
1756 }
1757
1771 const CResult& operator=(const CResult& res)
1772 {
1773 Assign(res);
1774 return *this;
1775 }
1776
1792 const CResult& operator=(const EResult eResult)
1793 {
1794 Assign(eResult);
1795 return *this;
1796 }
1797
1811 bool operator==(const CResult& res) const
1812 {
1813 return Equal(res.m_eResult);
1814 }
1815
1829 bool operator==(const EResult eResult) const
1830 {
1831 return Equal(eResult);
1832 }
1833
1847 bool operator!=(const CResult& res) const
1848 {
1849 return !Equal(res.m_eResult);
1850 }
1851
1865 bool operator!=(const EResult eResult) const
1866 {
1867 return !Equal(eResult);
1868 }
1869
1881 operator EResult() const
1882 {
1883 return m_eResult;
1884 }
1885
1895 operator bool() const
1896 {
1897 return IsOK();
1898 }
1899
1909 operator int32_t() const
1910 {
1911 return (int32_t)m_eResult;
1912 }
1913
1923 operator uint32_t() const
1924 {
1925 return (uint32_t)m_eResult;
1926 }
1927
1937 operator int64_t() const
1938 {
1939 return (int64_t)m_eResult;
1940 }
1941
1951 operator uint64_t() const
1952 {
1953 return (uint64_t)m_eResult;
1954 }
1955
1969 bool Assign(const CResult& res)
1970 {
1971 m_eResult = res.m_eResult;
1972 return true;
1973 }
1974
1988 bool Assign(const EResult eResult)
1989 {
1990 m_eResult = eResult;
1991 return true;
1992 }
1993
2007 bool Equal(const CResult& res) const
2008 {
2009 return m_eResult == res.m_eResult;
2010 }
2011
2025 bool Equal(const EResult eResult) const
2026 {
2027 return m_eResult == eResult;
2028 }
2029
2039 virtual bool IsOK() const
2040 {
2041 return EResult_OK == m_eResult || m_eResult == EResult_PartialOK;
2042 }
2043
2053 virtual bool IsStrictOK() const
2054 {
2055 return EResult_OK == m_eResult;
2056 }
2057
2067 virtual bool IsFail() const
2068 {
2069 return EResult_OK != m_eResult && m_eResult != EResult_PartialOK;
2070 }
2071
2081 virtual bool IsStrictFail() const
2082 {
2083 return EResult_OK != m_eResult;
2084 }
2085
2095 virtual int32_t GetResultCode() const
2096 {
2097 return (int32_t)m_eResult;
2098 }
2099
2109 virtual const wchar_t* GetString() const
2110 {
2111 return ((int32_t)m_eResult >= -1 && m_eResult < EResult_COUNT) ? (g_arrWcsResultMessage[((int32_t)m_eResult) + 1]) : nullptr;
2112 }
2113
2125 virtual EResult GetResult() const
2126 {
2127 return m_eResult;
2128 }
2129
2147 friend bool operator==(const EResult eResult, const CResult& res)
2148 {
2149 return res.Equal(eResult);
2150 }
2151
2169 friend bool operator!=(const EResult eResult, const CResult& res)
2170 {
2171 return !res.Equal(eResult);
2172 }
2173
2174 protected:
2175 EResult m_eResult;
2176 };
2177}
2178
2179#if !defined(__clang__)
2180 #pragma make_public(FLImaging::CResult)
2181 #pragma make_public(FLImaging::EResult)
2182#endif
bool operator==(const EResult eResult) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1829
bool Equal(const CResult &res) const
Compare CResult object.
Definition FLImagingBase/ResultsDef.h:2007
CResult(const CResult &res)
Copy constructor.
Definition FLImagingBase/ResultsDef.h:1737
bool operator==(const CResult &res) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1811
virtual bool IsStrictFail() const
Check the failure. If the result is not OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:2081
bool Equal(const EResult eResult) const
Compare CResult object.
Definition FLImagingBase/ResultsDef.h:2025
virtual bool IsStrictOK() const
Check the success. If the result is OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:2053
friend bool operator!=(const EResult eResult, const CResult &res)
Comparison operator.
Definition FLImagingBase/ResultsDef.h:2169
bool operator!=(const EResult eResult) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1865
virtual const wchar_t * GetString() const
Get the result string.
Definition FLImagingBase/ResultsDef.h:2109
CResult()
Default constructor.
Definition FLImagingBase/ResultsDef.h:1721
friend bool operator==(const EResult eResult, const CResult &res)
Comparison operator.
Definition FLImagingBase/ResultsDef.h:2147
bool Assign(const EResult eResult)
Assign CResult object.
Definition FLImagingBase/ResultsDef.h:1988
virtual int32_t GetResultCode() const
Returns the result code.
Definition FLImagingBase/ResultsDef.h:2095
const CResult & operator=(const EResult eResult)
Assign operator.
Definition FLImagingBase/ResultsDef.h:1792
CResult(const EResult eResult)
Copy constructor.
Definition FLImagingBase/ResultsDef.h:1753
virtual bool IsFail() const
Check the failure. If the result is not OK or PartialOK, it returns true. otherwise,...
Definition FLImagingBase/ResultsDef.h:2067
bool Assign(const CResult &res)
Assign CResult object.
Definition FLImagingBase/ResultsDef.h:1969
virtual EResult GetResult() const
Result return enum.
Definition FLImagingBase/ResultsDef.h:2125
bool operator!=(const CResult &res) const
Comparison operator.
Definition FLImagingBase/ResultsDef.h:1847
const CResult & operator=(const CResult &res)
Assign operator.
Definition FLImagingBase/ResultsDef.h:1771
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:2039
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_UnsupportedElement
Unsupported Element.
Definition FLImagingBase/ResultsDef.h:1420
@ 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 auto 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:1430
@ 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:1626
bool IsStrictOK(const EResult eResult)
Check the success. If the result is OK, it returns true. otherwise, it returns false.
Definition FLImagingBase/ResultsDef.h:1644
bool IsFail(const EResult eResult)
Check the failure. If the result is not OK or PartialOK, it returns true. otherwise,...
Definition FLImagingBase/ResultsDef.h:1662
const wchar_t * GetResultString(const EResult eResult)
Get the result string.
Definition FLImagingBase/ResultsDef.h:1698
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:1680