24 #ifndef _TPIE_FILE_ACCESSOR_WIN32_H
25 #define _TPIE_FILE_ACCESSOR_WIN32_H
27 #include <tpie/config.h>
37 namespace file_accessor {
50 inline ~
win32() {close_i();}
52 inline void open_wo(
const std::string & path);
53 inline void open_ro(
const std::string & path);
54 inline bool try_open_rw(
const std::string & path);
55 inline void open_rw_new(
const std::string & path);
57 inline void read_i(
void * data, memory_size_type size);
58 inline void write_i(
const void * data, memory_size_type size);
59 inline void seek_i(stream_size_type offset);
60 inline stream_size_type file_size_i();
61 inline void close_i();
62 inline void truncate_i(stream_size_type bytes);
63 inline bool is_open()
const;
65 inline void set_cache_hint(
cache_hint cacheHint);
68 inline void _open(
const std::string & path, DWORD access, DWORD create_mode);
74 #include <tpie/file_accessor/win32.inl>
76 #endif //_TPIE_FILE_ACCESSOR_WIN32_H
Reads and writes stream headers, user data and blocks from TPIE streams.