status_code.h Source File

status_code.h Source File#

SDK qb Runtime Library: status_code.h Source File
SDK qb Runtime Library v1.5
MCS001-KR
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
10#include "qbruntime/export.h"
11
12namespace mobilint {
13
18
19// clang-format off
20// The maximum status code used is 74.
28enum class StatusCode {
29 OK = 0,
30
33 BadAlloc = 39,
34
43
61
64
106
108
110};
111// clang-format on
112
119QBRUNTIME_EXPORT const std::string statusCodeToString(const StatusCode status_code);
120
137inline bool operator!(StatusCode sc) { return static_cast<int>(sc) != 0; }
138
140
141} // namespace mobilint
142
143#endif
bool operator!(StatusCode sc)
Checks whether the given StatusCode represents an error.
StatusCode
Enumerates status codes for the qbruntime.
Definition status_code.h:28
QBRUNTIME_EXPORT const std::string statusCodeToString(const StatusCode status_code)
Convert StatusCode into string.
@ Model_NoGlobalCoreWithGlobalMultiMode
Definition status_code.h:96