status_code.h Source File

status_code.h Source File#

SDK qb Runtime Library: status_code.h Source File
SDK qb Runtime Library v1.3
MCS001-EN
status_code.h
Go to the documentation of this file.
1
4
5#ifndef MOBILINT_QBRUNTIME_STATUS_CODE_H_
6#define MOBILINT_QBRUNTIME_STATUS_CODE_H_
7
8#include <string>
9
10namespace mobilint {
11
16
17// clang-format off
18// The maximum status code used is 70.
26enum class StatusCode {
27 OK = 0,
28
31 BadAlloc = 39,
32
38
56
59
100
102
104};
105// clang-format on
106
113const std::string statusCodeToString(const StatusCode status_code);
114
131inline bool operator!(StatusCode sc) { return static_cast<int>(sc) != 0; }
132
134
135} // namespace mobilint
136
137#endif
bool operator!(StatusCode sc)
Checks whether the given StatusCode represents an error.
StatusCode
Enumerates status codes for the qbruntime.
Definition status_code.h:26
const std::string statusCodeToString(const StatusCode status_code)
Convert StatusCode into string.
@ Model_NoGlobalCoreWithGlobalMultiMode
Definition status_code.h:90