sprint 1-alpha
Public Member Functions
sprint::io::detail::file< bManaged > Class Template Reference

#include <file.h>

Inherits if_copiable<!bManaged >.

List of all members.

Public Member Functions

 file (HANDLE h=INVALID_HANDLE_VALUE)
 file (const char *filename, flag_t mode)
bool good ()
 test if file is correctly open
bool OpenForWrite (LPCWSTR lpszFileName)
bool OpenForWrite (LPCSTR lpszFileName)
bool OpenForRead (LPCWSTR lpszFileName)
bool OpenForRead (LPCSTR lpszFileName)
bool OpenForBothReadWrite (LPCWSTR lpszFileName)
bool OpenForBothReadWrite (LPCSTR lpszFileName)
bool CreateForBothReadWrite (LPCWSTR lpszFileName)
bool CreateForBothReadWrite (LPCSTR lpszFileName)
bool CreateForWrite (LPCWSTR lpszFileName)
bool CreateForWrite (LPCSTR lpszFileName)
bool OpenForAppend (LPCWSTR lpszFileName)
bool OpenForAppend (LPCSTR lpszFileName)
void close ()
sprint::io::file_size_t seek (file_size_t offset, sprint::io::seek_t type)
sprint::io::state_t state ()
io::file_size_t length () const
int write (LPCVOID lpBuffer, UINT uBufferLen) const
int read (LPVOID lpBuffer, UINT uBufferLen) const
void flush ()
unsigned long tell () const
unsigned long SeekFromBegin (UINT uPos) const
unsigned long Skip (UINT uPos) const
BOOL Rewind () const
BOOL trunc () const
int get () const
int put (char c)
BOOL SetFileTime (const FILETIME *lpCreationTime, const FILETIME *lpLastAccessTime, const FILETIME *lpLastWriteTime)
BOOL GetFileTime (FILETIME *lpCreationTime, FILETIME *lpLastAccessTime, FILETIME *lpLastWriteTime)

Detailed Description

template<bool bManaged>
class sprint::io::detail::file< bManaged >

A File Wrapper

Parameters:
bManagedto close the file at the end

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines