windows::CFile


All platform-dependent classes have been moved to Platform Package in release 10.0.0.

This class is available on Windows platform only

Corresponding class for Linux platform is here.

Corresponding class for Android platform is here.

Implementation of the IFile interface for Windows platform.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

// This class uses WinAPI file access functions to work with file system 
    class CFile :public virtual IFile
    {
    public:
        String getFilename() override;
        long long getSize() override;
        long long getPointer() override;
    
        bool setPointer(const long long value, const SEEK_FROM seek_from) override;
    
        bool Read(const unsigned int size, unsigned char *buffer, unsigned long &read) override;
        bool Write(const unsigned int size, unsigned char *buffer, unsigned long &written) override;
    
        void Release() override;
    
        CFile(void *handle, const String &filename);
        virtual ~CFile() = default;
    };
Namespace: nitisa::standard::windows
Include: Standard/Platform/Windows/File.h