cmake/Source/CPack/WiX/cmWIXAccessControlList.h

35 lines
910 B
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2015-04-27 22:25:09 +02:00
#ifndef cmWIXAccessControlList_h
#define cmWIXAccessControlList_h
#include "cmWIXSourceWriter.h"
2017-07-20 19:35:53 +02:00
#include "cmCPackLog.h"
#include "cmInstalledFile.h"
2016-07-09 11:21:54 +02:00
2015-04-27 22:25:09 +02:00
class cmWIXAccessControlList
{
public:
2016-07-09 11:21:54 +02:00
cmWIXAccessControlList(cmCPackLog* logger,
cmInstalledFile const& installedFile,
cmWIXSourceWriter& sourceWriter);
2015-04-27 22:25:09 +02:00
bool Apply();
private:
void CreatePermissionElement(std::string const& entry);
void ReportError(std::string const& entry, std::string const& message);
bool IsBooleanAttribute(std::string const& name);
2016-07-09 11:21:54 +02:00
void EmitBooleanAttribute(std::string const& entry, std::string const& name);
2015-04-27 22:25:09 +02:00
cmCPackLog* Logger;
cmInstalledFile const& InstalledFile;
2016-07-09 11:21:54 +02:00
cmWIXSourceWriter& SourceWriter;
2015-04-27 22:25:09 +02:00
};
#endif