mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 23:29:39 +00:00
52c2aa474f
* Rebrand project to PiSCSI - rascsi ->piscsi - rasctl -> scsictl - rasdump -> scsidump - ras* -> piscsi* (rasutil -> piscsi_util, etc.) * Refined the formatting and wording of the app startup banner * Kept some references to rascsi and rasctl where backwards compatibility is concerned * Point to the new github repo URL Co-authored-by: nucleogenic <nr@nucleogenic.com> Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2021-2022 Uwe Seimet
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "generated/piscsi_interface.pb.h"
|
|
#include <string>
|
|
#include <sstream>
|
|
|
|
using namespace std;
|
|
using namespace piscsi_interface;
|
|
|
|
class ScsictlDisplay
|
|
{
|
|
public:
|
|
|
|
ScsictlDisplay() = default;
|
|
~ScsictlDisplay() = default;
|
|
|
|
string DisplayDevicesInfo(const PbDevicesInfo&) const;
|
|
string DisplayDeviceInfo(const PbDevice&) const;
|
|
string DisplayVersionInfo(const PbVersionInfo&) const;
|
|
string DisplayLogLevelInfo(const PbLogLevelInfo&) const;
|
|
string DisplayDeviceTypesInfo(const PbDeviceTypesInfo&) const;
|
|
string DisplayReservedIdsInfo(const PbReservedIdsInfo&) const;
|
|
string DisplayImageFile(const PbImageFile&) const;
|
|
string DisplayImageFilesInfo(const PbImageFilesInfo&) const;
|
|
string DisplayNetworkInterfaces(const PbNetworkInterfacesInfo&) const;
|
|
string DisplayMappingInfo(const PbMappingInfo&) const;
|
|
string DisplayOperationInfo(const PbOperationInfo&) const;
|
|
|
|
private:
|
|
|
|
void DisplayParams(ostringstream&, const PbDevice&) const;
|
|
void DisplayAttributes(ostringstream&, const PbDeviceProperties&) const;
|
|
void DisplayDefaultParameters(ostringstream&, const PbDeviceProperties&) const;
|
|
void DisplayBlockSizes(ostringstream&, const PbDeviceProperties&) const;
|
|
void DisplayParameters(ostringstream&, const PbOperationMetaData&) const;
|
|
void DisplayPermittedValues(ostringstream&, const PbOperationParameter&) const;
|
|
};
|