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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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