mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
More work on the logger overhaul: the reader should be done now.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "sector.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
const std::string Sector::statusToString(Status status)
|
||||
std::string Sector::statusToString(Status status)
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
@@ -15,6 +15,19 @@ const std::string Sector::statusToString(Status status)
|
||||
}
|
||||
}
|
||||
|
||||
std::string Sector::statusToChar(Status status)
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
case Status::OK: return "";
|
||||
case Status::MISSING: return "?";
|
||||
case Status::BAD_CHECKSUM: return "!";
|
||||
case Status::DATA_MISSING: return "!";
|
||||
case Status::CONFLICT: return "*";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
||||
Sector::Status Sector::stringToStatus(const std::string& value)
|
||||
{
|
||||
if (value == "OK")
|
||||
|
||||
Reference in New Issue
Block a user