status_code.h Source File

status_code.h Source File#

Runtime Library: status_code.h Source File
Runtime Library v0.30
Mobilint SDK qb
status_code.h
Go to the documentation of this file.
1
4
5#ifndef MOBILINT_MACCEL_STATUS_CODE_H_
6#define MOBILINT_MACCEL_STATUS_CODE_H_
7
8#include <string>
9
10namespace mobilint {
11
16
17// clang-format off
18// The maximum status code used is 65.
26enum class StatusCode {
27 OK = 0,
28
31 BadAlloc = 39,
32
38
54
57
96
98};
99// clang-format on
100
107const std::string statusCodeToString(const StatusCode status_code);
108
125inline bool operator!(StatusCode sc) { return static_cast<int>(sc) != 0; }
126
128
129} // namespace mobilint
130
131#endif
bool operator!(StatusCode sc)
Checks whether the given StatusCode represents an error.
StatusCode
Enumerates status codes for the maccel runtime.
Definition status_code.h:26
const std::string statusCodeToString(const StatusCode status_code)
Convert StatusCode into string.
@ Model_NoGlobalCoreWithGlobalMultiMode
Definition status_code.h:87