mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-02 11:41:34 +00:00
ca23d9b7a3
* Merged FileSupport into Disk * Improved code granularity * Made classes previously directly writing to cout testable * Added numerous unit tests * Fixed minor issues uncovered by unit tests * Fixed SonarCloud issues * Replaced remaining proprietary data types (WORD/DWORD) except for files in hal/
31 lines
911 B
C++
31 lines
911 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator RaSCSI Reloaded
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2021-2022 Uwe Seimet
|
|
//
|
|
// Helper methods for setting up/evaluating protobuf messages
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "google/protobuf/message.h"
|
|
#include "rascsi_interface.pb.h"
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
using namespace rascsi_interface;
|
|
|
|
namespace protobuf_util
|
|
{
|
|
void ParseParameters(PbDeviceDefinition&, const string&);
|
|
string GetParam(const PbCommand&, const string&);
|
|
string GetParam(const PbDeviceDefinition&, const string&);
|
|
void AddParam(PbCommand&, const string&, string_view);
|
|
void AddParam(PbDevice&, const string&, string_view);
|
|
void AddParam(PbDeviceDefinition&, const string&, string_view);
|
|
void SetPatternParams(PbCommand&, string_view);
|
|
}
|