Merge pull request #67 from tripzero/trip
[profile/ivi/automotive-message-broker.git] / lib / valuequality.h
1 /*
2         Copyright (C) 2015  Intel Corporation
3
4         This library is free software; you can redistribute it and/or
5         modify it under the terms of the GNU Lesser General Public
6         License as published by the Free Software Foundation; either
7         version 2.1 of the License, or (at your option) any later version.
8
9         This library is distributed in the hope that it will be useful,
10         but WITHOUT ANY WARRANTY; without even the implied warranty of
11         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12         Lesser General Public License for more details.
13
14         You should have received a copy of the GNU Lesser General Public
15         License along with this library; if not, write to the Free Software
16         Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18
19 namespace amb {
20 namespace Quality {
21
22 /*!
23  * \brief The ValueQuality enum describes the quality of an AbstractPropertyType
24  * These codes are cherry picked from the OPC UA Quality Code specification
25  */
26 enum ValueQuality {
27         Good = 0x00000000,
28         GoodNoData = 0x00A50000,
29         Uncertain = 0x40000000,
30         UncertainSensorNotAccurate = 0x40930000,
31         UncertainInitialValue = 0x40920000,
32         Bad = 0x80000000,
33         BadUnexpectedError = 0x80010000,
34         BadInternalError = 0x80020000,
35         BadTimeout = 0x800A0000,
36         BadServiceUnsupported = 0x800B0000,
37         BadSecurityChecksFailed = 0x80130000,
38         BadUserAccessDenied = 0x801F0000
39 };
40 }
41 }