Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarAssetPath.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarAssetPath.hpp')
-rw-r--r--source/core/StarAssetPath.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/StarAssetPath.hpp b/source/core/StarAssetPath.hpp
index fd77005..93fa8eb 100644
--- a/source/core/StarAssetPath.hpp
+++ b/source/core/StarAssetPath.hpp
@@ -3,6 +3,7 @@
#include "StarDirectives.hpp"
#include "StarHash.hpp"
+#include "StarDataStream.hpp"
namespace Star {
@@ -53,6 +54,7 @@ struct AssetPath {
static String relativeTo(String const& sourcePath, String const& givenPath);
AssetPath() = default;
+ AssetPath(const char* path);
AssetPath(String const& path);
AssetPath(String&& basePath, Maybe<String>&& subPath, DirectivesGroup&& directives);
AssetPath(const String& basePath, const Maybe<String>& subPath, const DirectivesGroup& directives);
@@ -63,6 +65,9 @@ struct AssetPath {
bool operator==(AssetPath const& rhs) const;
};
+DataStream& operator>>(DataStream& ds, AssetPath& path);
+DataStream& operator<<(DataStream& ds, AssetPath const& path);
+
std::ostream& operator<<(std::ostream& os, AssetPath const& rhs);
template <>