nstool/lib/libhac/include/nn/hac/ServiceAccessControl.h

43 lines
988 B
C
Raw Normal View History

2018-06-29 04:00:15 +00:00
#pragma once
#include <string>
#include <vector>
#include <fnd/IByteModel.h>
2018-06-29 04:00:15 +00:00
#include <fnd/List.h>
2018-08-07 07:17:51 +00:00
#include <nn/hac/ServiceAccessControlEntry.h>
2018-06-29 04:00:15 +00:00
2018-08-07 07:17:51 +00:00
namespace nn
{
namespace hac
2018-06-29 04:00:15 +00:00
{
class ServiceAccessControl :
public fnd::IByteModel
2018-06-29 04:00:15 +00:00
{
public:
ServiceAccessControl();
ServiceAccessControl(const ServiceAccessControl& other);
2018-06-29 04:00:15 +00:00
void operator=(const ServiceAccessControl& other);
bool operator==(const ServiceAccessControl& other) const;
bool operator!=(const ServiceAccessControl& other) const;
2018-06-29 04:00:15 +00:00
// IByteModel
2018-06-29 04:00:15 +00:00
void toBytes();
void fromBytes(const byte_t* bytes, size_t len);
const fnd::Vec<byte_t>& getBytes() const;
// variables
void clear();
const fnd::List<ServiceAccessControlEntry>& getServiceList() const;
void addService(const ServiceAccessControlEntry& service);
private:
const std::string kModuleName = "SERVICE_ACCESS_CONTROL";
2018-06-29 04:00:15 +00:00
// raw binary
fnd::Vec<byte_t> mRawBinary;
// variables
fnd::List<ServiceAccessControlEntry> mServices;
};
2018-08-07 07:17:51 +00:00
}
2018-06-29 04:00:15 +00:00
}