GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
ResourcesAbsolutePathChecker.h
1 /*
2  * GDevelop Core
3  * Copyright 2008-2016 Florian Rival ([email protected]). All rights
4  * reserved. This project is released under the MIT License.
5  */
6 #pragma once
7 
8 #include "GDCore/IDE/AbstractFileSystem.h"
9 #include "GDCore/IDE/Project/ArbitraryResourceWorker.h"
10 #include "GDCore/String.h"
11 
12 namespace gd {
13 
23  : public ArbitraryResourceWorker {
24 public:
26  AbstractFileSystem &fileSystem)
27  : ArbitraryResourceWorker(resourcesManager), hasAbsoluteFilenames(false),
28  fs(fileSystem){};
29  virtual ~ResourcesAbsolutePathChecker(){};
30 
35  return hasAbsoluteFilenames;
36  };
37 
41  virtual void ExposeFile(gd::String& resource);
42 
43  private:
44  bool hasAbsoluteFilenames;
46 };
47 
48 } // namespace gd
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
Helper used to check if a project has at least a resource with an absolute filename.
Definition: ResourcesAbsolutePathChecker.h:23
bool HasResourceWithAbsoluteFilenames() const
Definition: ResourcesAbsolutePathChecker.h:34
Inventory all resources used by a project.
Definition: ResourcesManager.h:557
String represents an UTF8 encoded string.
Definition: String.h:31
Definition: CommonTools.h:24