#ifndef REZ_H #define REZ_H #include #include #include #include #include namespace rez { class ball { public: ball(const char *path); int parse(); std::unique_ptr 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