Loading...
Searching...
No Matches
IWriteFile.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_WRITE_FILE_H_INCLUDED__
#define __I_WRITE_FILE_H_INCLUDED__
#include "IReferenceCounted.h"
#include "path.h"
namespace irr
{
namespace io
{
class IWriteFile : public virtual IReferenceCounted
{
public:
virtual s32 write(const void* buffer, u32 sizeToWrite) = 0;
virtual bool seek(long finalPos, bool relativeMovement = false) = 0;
virtual long getPos() const = 0;
virtual const path& getFileName() const = 0;
};
IWriteFile* createWriteFile(const io::path& fileName, bool append);
} // end namespace io
} // end namespace irr
#endif
IReferenceCounted.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::io::IWriteFile
Interface providing write access to a file.
Definition IWriteFile.h:18
irr::io::IWriteFile::getPos
virtual long getPos() const =0
Get the current position in the file.
irr::io::IWriteFile::write
virtual s32 write(const void *buffer, u32 sizeToWrite)=0
Writes an amount of bytes to the file.
irr::io::IWriteFile::seek
virtual bool seek(long finalPos, bool relativeMovement=false)=0
Changes position in file.
irr::io::IWriteFile::getFileName
virtual const path & getFileName() const =0
Get name of file.
irr::io
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
irr::io::createWriteFile
IWriteFile * createWriteFile(const io::path &fileName, bool append)
Internal function, please do not use.
irr::io::path
core::string< fschar_t > path
Type used for all file system related strings.
Definition path.h:17
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
path.h
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0