summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/File.hxx
diff options
context:
space:
mode:
authoramlal <amlal@el-mahrouss-logic.com>2024-03-16 14:22:21 +0100
committeramlal <amlal@el-mahrouss-logic.com>2024-03-16 14:22:21 +0100
commit55059428bfd6a18451bc1ed3ee64e7bb04c395cd (patch)
tree02dd524a2249111e30d2208fd700fa72e31182db /Public/Kits/System.Core/File.hxx
parent8f9b5e08f53f6e49a1f4c6b20e17c54298da9c44 (diff)
HCR-14: See below.
- Pretty big modifications, add kernel mouse. Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Kits/System.Core/File.hxx')
-rw-r--r--Public/Kits/System.Core/File.hxx42
1 files changed, 42 insertions, 0 deletions
diff --git a/Public/Kits/System.Core/File.hxx b/Public/Kits/System.Core/File.hxx
new file mode 100644
index 00000000..2f799330
--- /dev/null
+++ b/Public/Kits/System.Core/File.hxx
@@ -0,0 +1,42 @@
+/* -------------------------------------------
+
+ Copyright Mahrouss Logic
+
+------------------------------------------- */
+
+#ifndef _SYSTEM_KIT_HCORE_FILE_HPP
+#define _SYSTEM_KIT_HCORE_FILE_HPP
+
+#include <CompilerKit/CompilerKit.hxx>
+#include <NewKit/Defines.hpp>
+
+using namespace HCore;
+
+/// @brief SOM class, translated to C++
+
+namespace System {
+class File final {
+ public:
+ explicit File(const char *path);
+ ~File();
+
+ public:
+ HCORE_COPY_DEFAULT(File);
+
+ public:
+ voidPtr Read(SizeT off, SizeT sz);
+ void Write(voidPtr buf, SizeT off, SizeT sz);
+ void Seek(SizeT off);
+ voidPtr Read(SizeT sz);
+ void Write(voidPtr buf, SizeT sz);
+ void Rewind();
+
+ public:
+ const char *MIME();
+ void MIME(const char *mime);
+};
+
+typedef File *FilePtr;
+} // namespace System
+
+#endif // ifndef _SYSTEM_KIT_HCORE_FILE_HPP