aboutsummaryrefslogtreecommitdiff
path: root/src/rez/rez.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-12-04 13:58:02 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-12-15 23:04:39 +0100
commit600ff28dd73f2cf17725382b68a4b1b2573f2e34 (patch)
treea105c686458d8998438652aeca6299cf9000edcd /src/rez/rez.h
downloadglobalops-main.tar.gz
First commitHEADabcmain
Diffstat (limited to 'src/rez/rez.h')
-rw-r--r--src/rez/rez.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/rez/rez.h b/src/rez/rez.h
new file mode 100644
index 0000000..5bbe206
--- /dev/null
+++ b/src/rez/rez.h
@@ -0,0 +1,46 @@
+#ifndef REZ_H
+#define REZ_H
+
+#include <rez/dir.h>
+#include <rez/file.h>
+#include <rez/io.h>
+#include <memory>
+#include <string>
+
+namespace rez
+{
+
+class ball
+{
+public:
+ ball(const char *path);
+ int parse();
+ std::unique_ptr<rez::file> open(const char *path);
+
+private:
+ std::string toupper(const std::string &s) const;
+
+ enum
+ {
+ FILE_FORMAT_VERSION,
+ ROOT_DIR_POS,
+ ROOT_DIR_SIZE,
+ ROOT_DIR_TIME,
+ NEXT_WRITE_POS,
+ TIME,
+ MAX_KEY_ARRAY,
+ MAX_DIR_NAME_SIZE,
+ MAX_REZ_NAME_SIZE,
+ MAX_COMMENT_SIZE,
+
+ N_WORDS
+ };
+
+ const std::string path;
+ rez::io io;
+ rez::dir root_dir;
+};
+
+}
+
+#endif