6 #ifndef RESOURCESMERGINGHELPER_H
7 #define RESOURCESMERGINGHELPER_H
12 #include "GDCore/IDE/Project/ArbitraryResourceWorker.h"
13 #include "GDCore/String.h"
15 class AbstractFileSystem;
35 preserveDirectoriesStructure(
false), preserveAbsoluteFilenames(
false),
43 void SetBaseDirectory(
const gd::String& baseDirectory);
51 preserveDirectoriesStructure = preserveDirectoriesStructure_;
58 preserveAbsoluteFilenames = preserveAbsoluteFilenames_;
74 void ExposeFile(
gd::String& resource)
override;
An interface to manipulate files in a platform agnostic way. This allow exporters to work on files wi...
Definition: AbstractFileSystem.h:24
ArbitraryResourceWorker is used so as to inventory resources and sometimes update them.
Definition: ArbitraryResourceWorker.h:44
Inventory all resources used by a project.
Definition: ResourcesManager.h:556
ResourcesMergingHelper is used (mainly during export) to list resources and generate new filenames,...
Definition: ResourcesMergingHelper.h:30
bool preserveAbsoluteFilenames
Definition: ResourcesMergingHelper.h:92
void PreserveDirectoriesStructure(bool preserveDirectoriesStructure_=true)
Set if the directories structure, starting from the base directory, must be preserved....
Definition: ResourcesMergingHelper.h:50
std::map< gd::String, gd::String > & GetAllResourcesOldAndNewFilename()
Return a map containing the resources old absolute filename as key, and the resources new filenames a...
Definition: ResourcesMergingHelper.h:66
gd::AbstractFileSystem & fs
The gd::AbstractFileSystem used to manipulate files.
Definition: ResourcesMergingHelper.h:97
std::map< gd::String, gd::String > newFilenames
Definition: ResourcesMergingHelper.h:86
std::map< gd::String, gd::String > oldFilenames
Definition: ResourcesMergingHelper.h:82
void PreserveAbsoluteFilenames(bool preserveAbsoluteFilenames_=true)
Set if the absolute filenames must be preserved.
Definition: ResourcesMergingHelper.h:57
bool preserveDirectoriesStructure
Definition: ResourcesMergingHelper.h:88
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24