[fnd|...] Renamed ISerialisable to IByteModel

This commit is contained in:
jakcron 2018-10-14 13:45:09 +08:00
parent 1c338f1176
commit 2439250fdf
25 changed files with 455 additions and 455 deletions

View file

@ -1,6 +1,6 @@
#pragma once
#include <string>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/es/ticket.h>
namespace nn
@ -8,7 +8,7 @@ namespace nn
namespace es
{
class SectionHeader_V2 :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
SectionHeader_V2();

View file

@ -1,6 +1,6 @@
#pragma once
#include <string>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/es/ticket.h>
@ -9,7 +9,7 @@ namespace nn
namespace es
{
class TicketBody_V2 :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
TicketBody_V2();

View file

@ -4,10 +4,10 @@
namespace fnd
{
class ISerialisable
class IByteModel
{
public:
virtual ~ISerialisable() = default;
virtual ~IByteModel() = default;
// serialise
virtual void toBytes() = 0;

View file

@ -129,9 +129,9 @@
<ClInclude Include="include\fnd\elf.h" />
<ClInclude Include="include\fnd\Endian.h" />
<ClInclude Include="include\fnd\Exception.h" />
<ClInclude Include="include\fnd\IByteModel.h" />
<ClInclude Include="include\fnd\IFile.h" />
<ClInclude Include="include\fnd\io.h" />
<ClInclude Include="include\fnd\ISerialisable.h" />
<ClInclude Include="include\fnd\LayeredIntegrityMetadata.h" />
<ClInclude Include="include\fnd\LayeredIntegrityWrappedIFile.h" />
<ClInclude Include="include\fnd\List.h" />

View file

@ -42,15 +42,15 @@
<ClInclude Include="include\fnd\Exception.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\IByteModel.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\IFile.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\io.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\ISerialisable.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\LayeredIntegrityMetadata.h">
<Filter>Header Files</Filter>
</ClInclude>

View file

@ -1,14 +1,14 @@
#pragma once
#include <nn/hac/aset.h>
#include <fnd/List.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
namespace nn
{
namespace hac
{
class AssetHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct sSection

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <fnd/types.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/hac/aci.h>
#include <nn/hac/FileSystemAccessControlBinary.h>
#include <nn/hac/ServiceAccessControlBinary.h>
@ -11,7 +11,7 @@ namespace nn
{
namespace hac
{
class AccessControlInfoBinary : public fnd::ISerialisable
class AccessControlInfoBinary : public fnd::IByteModel
{
public:
AccessControlInfoBinary();

View file

@ -2,7 +2,7 @@
#include <string>
#include <fnd/types.h>
#include <fnd/List.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/hac/aci.h>
#include <nn/hac/FileSystemAccessControlBinary.h>
#include <nn/hac/ServiceAccessControlBinary.h>
@ -12,7 +12,7 @@ namespace nn
{
namespace hac
{
class AccessControlInfoDescBinary : public fnd::ISerialisable
class AccessControlInfoDescBinary : public fnd::IByteModel
{
public:
struct sProgramIdRestrict

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <fnd/types.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/hac/nacp.h>
@ -10,7 +10,7 @@ namespace nn
namespace hac
{
class ApplicationControlPropertyBinary :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct sTitle

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <cstring>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/hac/cnmt.h>
@ -10,7 +10,7 @@ namespace nn
namespace hac
{
class ContentMetaBinary :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct ContentInfo

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <fnd/types.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/hac/fac.h>
@ -9,7 +9,7 @@ namespace nn
{
namespace hac
{
class FileSystemAccessControlBinary : public fnd::ISerialisable
class FileSystemAccessControlBinary : public fnd::IByteModel
{
public:
struct sSaveDataOwnerId

View file

@ -1,6 +1,6 @@
#pragma once
#include <nn/hac/hierarchicalintegrity.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <fnd/sha.h>
@ -9,7 +9,7 @@ namespace nn
namespace hac
{
class HierarchicalIntegrityHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct sLayer

View file

@ -1,6 +1,6 @@
#pragma once
#include <nn/hac/hierarchicalsha256.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
namespace nn
@ -8,7 +8,7 @@ namespace nn
namespace hac
{
class HierarchicalSha256Header :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct sLayer

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <vector>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/hac/ThreadInfoHandler.h>
#include <nn/hac/SystemCallHandler.h>
@ -17,7 +17,7 @@ namespace nn
namespace hac
{
class KernelCapabilityBinary :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
KernelCapabilityBinary();

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <fnd/List.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/hac/meta.h>
#include <nn/hac/AccessControlInfoBinary.h>
#include <nn/hac/AccessControlInfoDescBinary.h>
@ -11,7 +11,7 @@ namespace nn
namespace hac
{
class MetaBinary :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
MetaBinary();

View file

@ -1,6 +1,6 @@
#pragma once
#include <nn/hac/nca.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
namespace nn
@ -8,7 +8,7 @@ namespace nn
namespace hac
{
class NcaHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
enum FormatVersion

View file

@ -1,7 +1,7 @@
#pragma once
#include <cstring>
#include <nn/hac/nro.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
namespace nn
@ -9,7 +9,7 @@ namespace nn
namespace hac
{
class NroHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct sRoCrt

View file

@ -1,7 +1,7 @@
#pragma once
#include <cstring>
#include <nn/hac/nso.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
namespace nn
@ -9,7 +9,7 @@ namespace nn
namespace hac
{
class NsoHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
struct sModuleId

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <fnd/types.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/hac/pfs.h>
@ -10,7 +10,7 @@ namespace nn
namespace hac
{
class PfsHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
enum FsType

View file

@ -1,7 +1,7 @@
#pragma once
#include <string>
#include <vector>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
#include <nn/hac/ServiceAccessControlEntry.h>
@ -10,7 +10,7 @@ namespace nn
namespace hac
{
class ServiceAccessControlBinary :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
ServiceAccessControlBinary();

View file

@ -1,14 +1,14 @@
#pragma once
#include <string>
#include <fnd/types.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
namespace nn
{
namespace hac
{
class ServiceAccessControlEntry :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
ServiceAccessControlEntry();

View file

@ -1,6 +1,6 @@
#pragma once
#include <nn/hac/xci.h>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <fnd/List.h>
namespace nn
@ -8,7 +8,7 @@ namespace nn
namespace hac
{
class XciHeader :
public fnd::ISerialisable
public fnd::IByteModel
{
public:
XciHeader();

View file

@ -1,6 +1,6 @@
#pragma once
#include <string>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/pki/cert.h>
namespace nn
@ -8,7 +8,7 @@ namespace nn
namespace pki
{
class CertificateBody
: public fnd::ISerialisable
: public fnd::IByteModel
{
public:
CertificateBody();

View file

@ -1,6 +1,6 @@
#pragma once
#include <string>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/pki/sign.h>
namespace nn
@ -8,7 +8,7 @@ namespace nn
namespace pki
{
class SignatureBlock
: public fnd::ISerialisable
: public fnd::IByteModel
{
public:
SignatureBlock();

View file

@ -1,6 +1,6 @@
#pragma once
#include <string>
#include <fnd/ISerialisable.h>
#include <fnd/IByteModel.h>
#include <nn/pki/SignatureBlock.h>
namespace nn
@ -9,7 +9,7 @@ namespace pki
{
template <class T>
class SignedData
: public fnd::ISerialisable
: public fnd::IByteModel
{
public:
SignedData();