mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 16:33:17 +00:00
41bdcd4aed
* Update logging * Remove duplicate code * Update unit tests * Clean up includes * Merge ProtobufSerializer into protobuf_util namespace * Precompile regex * Add const * Add Split() convenience method, update log level/ID parsing * Move log.h to legacy folder * Elimininate gotos * Fixes for gcc 13 * Update compiler flags * Update default folder handling * Use references instead of pointers * Move code for better encapsulation * Move code * Remove unused method argument * Move device logger * Remove redundant to_string * Rename for consistency * Update handling of protobuf pointers * Simplify protobuf usage * Memory handling update * Add hasher
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI for Raspberry Pi
|
|
// Loopback tester utility
|
|
//
|
|
// Copyright (C) 2022 akuker
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
|
|
class ScsiLoop_Cout
|
|
{
|
|
public:
|
|
static void StartTest(const string &test_name);
|
|
static void PrintUpdate();
|
|
static void FinishTest(const string &test_name, int failures);
|
|
static void PrintErrors(const vector<string> &test_errors);
|
|
|
|
private:
|
|
const static inline string RESET = "\033[0m";
|
|
const static inline string BLACK = "\033[30m"; /* Black */
|
|
const static inline string RED = "\033[31m"; /* Red */
|
|
const static inline string GREEN = "\033[32m"; /* Green */
|
|
const static inline string YELLOW = "\033[33m"; /* Yellow */
|
|
const static inline string BLUE = "\033[34m"; /* Blue */
|
|
const static inline string MAGENTA = "\033[35m"; /* Magenta */
|
|
const static inline string CYAN = "\033[36m"; /* Cyan */
|
|
const static inline string WHITE = "\033[37m"; /* White */
|
|
};
|