cc_tools_qt
Common Environment for Protocol Analysis.
Loading...
Searching...
No Matches
lib
include
cc_tools_qt
ErrorStatus.h
1
//
2
// Copyright 2014 - 2024 (C). Alex Robenko. All rights reserved.
3
//
4
5
// This library is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19
#pragma once
20
21
#include "comms/ErrorStatus.h"
22
#include "Api.h"
23
24
namespace
cc_tools_qt
25
{
26
27
enum class
ErrorStatus
{
28
Success
,
29
NotEnoughData
,
31
ProtocolError
,
33
BufferOverflow
,
35
InvalidMsgId
,
36
InvalidMsgData
,
38
MsgAllocFailure
,
39
NumOfErrorStatuses
40
};
41
42
CC_API
ErrorStatus
transformErrorStatus(comms::ErrorStatus value);
43
44
}
// namespace comms
45
46
cc_tools_qt
Main namespace for all classes / functions of the shared library.
cc_tools_qt::ErrorStatus
ErrorStatus
Definition
ErrorStatus.h:27
cc_tools_qt::ErrorStatus::MsgAllocFailure
@ MsgAllocFailure
Used to indicate that message allocation has failed.
cc_tools_qt::ErrorStatus::Success
@ Success
Used to indicate successful outcome of the operation.
cc_tools_qt::ErrorStatus::BufferOverflow
@ BufferOverflow
cc_tools_qt::ErrorStatus::NumOfErrorStatuses
@ NumOfErrorStatuses
Number of supported error statuses, must be last.
cc_tools_qt::ErrorStatus::InvalidMsgId
@ InvalidMsgId
Used to indicate that received message has unknown id.
cc_tools_qt::ErrorStatus::NotEnoughData
@ NotEnoughData
cc_tools_qt::ErrorStatus::ProtocolError
@ ProtocolError
cc_tools_qt::ErrorStatus::InvalidMsgData
@ InvalidMsgData
Generated by
1.9.8