libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
error.hxx
1
#pragma once
2
3
// clues
4
#include <clues/items/items.hxx>
5
6
namespace
clues::item {
7
9
14
class
CLUES_API SuccessResult :
15
public
ReturnValue {
16
public
:
17
SuccessResult(
18
const
std::string_view short_label =
"success"
,
19
const
std::string_view long_label = {}) :
20
ReturnValue{short_label, long_label} {
21
}
22
23
std::string
str
()
const override
;
24
26
30
bool
valid
()
const
{
31
return
m_val
== Word::ZERO;
32
}
33
};
34
35
}
// end ns
clues::SystemCallItem::m_val
Word m_val
The raw register value for the item.
Definition
SystemCallItem.hxx:191
clues::item::SuccessResult::valid
bool valid() const
Checks whether the success value actually is a success value.
Definition
error.hxx:30
clues::item::SuccessResult::str
std::string str() const override
Returns a human readable string representation of the item.
Definition
error.cxx:10
include
items
error.hxx
Generated by
1.13.2