libclues
Linux C++ Tracing Library
Loading...
Searching...
No Matches
error.hxx
1#pragma once
2
3// clues
4#include <clues/items/items.hxx>
5
6namespace clues::item {
7
9
14class CLUES_API SuccessResult :
15 public ReturnValue {
16public:
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
Word m_val
The raw register value for the item.
bool valid() const
Checks whether the success value actually is a success value.
Definition error.hxx:30
std::string str() const override
Returns a human readable string representation of the item.
Definition error.cxx:10