Files
gsmartcontrol/src/applib/smartctl_text_basic_parser.h
T
Alexander Shaduri 351f5edaa9 Switched most of message-based error handling to std::expected.
Refactored enum class naming to use ThisCase.
Decorated most getters with [[nodiscard]].
2024-03-22 18:21:08 +04:00

42 lines
848 B
C++

/******************************************************************************
License: GNU General Public License v3.0 only
Copyright:
(C) 2008 - 2024 Alexander Shaduri <ashaduri@gmail.com>
******************************************************************************/
/// \file
/// \author Alexander Shaduri
/// \ingroup applib
/// \weakgroup applib
/// @{
#ifndef SMARTCTL_TEXT_BASIC_PARSER_H
#define SMARTCTL_TEXT_BASIC_PARSER_H
//#include <string>
//#include <vector>
#include "smartctl_parser.h"
/// Parse info output, regardless of device type
class SmartctlTextBasicParser : public SmartctlParser {
public:
// Defaulted, used by make_unique.
SmartctlTextBasicParser() = default;
// Overridden
[[nodiscard]] hz::ExpectedVoid<SmartctlParserError> parse(std::string_view smartctl_output) override;
};
#endif
/// @}