1 #ifndef STORAGE_FACTORY_FILE_H
2 # define STORAGE_FACTORY_FILE_H
22 virtual void create (
const char *name,
23 bool exclusive =
false,
25 virtual void create (
const std::string &name,
26 bool exclusive =
false,
28 virtual void open (
const char *name,
31 virtual void open (
const std::string &name,
54 virtual void flush (
void);
55 virtual void close (
void);
56 virtual void abort (
void);
68 static void sysopen (
const char *name,
int flags,
int perms,
69 IOFD &newfd,
unsigned &newflags);
75 #endif // STORAGE_FACTORY_FILE_H
virtual IOSize readv(IOBuffer *into, IOSize length)
virtual void setAutoClose(bool closeit)
static bool sysclose(IOFD fd, int *error=0)
static void sysopen(const char *name, int flags, int perms, IOFD &newfd, unsigned &newflags)
virtual void create(const char *name, bool exclusive=false, int perms=0666)
std::vector< Variable::Flags > flags
virtual void attach(IOFD fd)
virtual IOOffset size(void) const
virtual bool prefetch(const IOPosBuffer *what, IOSize n)
virtual void open(const char *name, int flags=IOFlags::OpenRead, int perms=0666)
virtual IOSize write(const void *from, IOSize n, IOOffset pos)
virtual IOSize writev(const IOBuffer *from, IOSize length)
virtual IOOffset position(void) const
static IOFD sysduplicate(IOFD fd)
unsigned int offset(bool)
static std::string from(" from ")
virtual IOSize write(const void *from, IOSize n)
virtual void resize(IOOffset size)
File * duplicate(bool copy) const
virtual IOFD fd(void) const