status_code.h Source File

status_code.h Source File#

SDK qb Runtime Library: status_code.h Source File
SDK qb Runtime Library v1.4
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
10#include "qbruntime/export.h"
11
12namespace mobilint {
13
18
19// clang-format off
20// The maximum status code used is 73.
28enum class StatusCode {
29 OK = 0,
30
33 BadAlloc = 39,
34
43
61
64
105
107
109};
110// clang-format on
111
118QBRUNTIME_EXPORT const std::string statusCodeToString(const StatusCode status_code);
119
136inline bool operator!(StatusCode sc) { return static_cast<int>(sc) != 0; }
137
139
140} // namespace mobilint
141
142#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:95