diff options
Diffstat (limited to 'Public/Kits/System.Core/File.hxx')
| -rw-r--r-- | Public/Kits/System.Core/File.hxx | 42 |
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 |
