]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/ParsedSource.h
added utility function to create headers
[l2e.git] / src / loader / ParsedSource.h
index 36f3810ab434cb8805bb188b95348f6984165a91..98ecd8423c401652f235c01a5ed7d68d40b1379b 100644 (file)
@@ -28,6 +28,7 @@ public:
                BOOLEAN,
                COLOR,
                NUMBER,
+               PATH,
                STRING,
                VECTOR,
                OBJECT
@@ -39,6 +40,7 @@ public:
        explicit Literal(bool);
        Literal(int r, int g, int b, int a = 255);
        explicit Literal(int number);
+       Literal(const std::string &dir, const std::string &path);
        Literal(const std::string &);
        Literal(int x, int y);
        Literal(const std::string &typeName, PropertyList *properties);
@@ -204,6 +206,9 @@ public:
        const std::map<std::string, Definition *> &Definitions() const { return definitions; }
        const std::set<std::string> &Exports() const { return exports; }
 
+public:
+       void WriteHeader(std::ostream &) const;
+
 private:
        std::map<std::string, Declaration *> declarations;
        std::map<std::string, Definition *> definitions;