test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StorageAccountProxy.h
Go to the documentation of this file.
1 #ifndef STORAGE_FACTORY_STORAGE_ACCOUNT_PROXY_H
2 # define STORAGE_FACTORY_STORAGE_ACCOUNT_PROXY_H
3 
6 # include <string>
7 
17 {
18 public:
19  StorageAccountProxy (const std::string &storageClass, Storage *baseStorage);
20  ~StorageAccountProxy (void);
21 
22  using Storage::read;
23  using Storage::write;
24 
25  virtual bool prefetch (const IOPosBuffer *what, IOSize n);
26  virtual IOSize read (void *into, IOSize n);
27  virtual IOSize read (void *into, IOSize n, IOOffset pos);
28  virtual IOSize readv (IOBuffer *into, IOSize n);
29  virtual IOSize readv (IOPosBuffer *into, IOSize n);
30  virtual IOSize write (const void *from, IOSize n);
31  virtual IOSize write (const void *from, IOSize n, IOOffset pos);
32  virtual IOSize writev (const IOBuffer *from, IOSize n);
33  virtual IOSize writev (const IOPosBuffer *from, IOSize n);
34 
35  virtual IOOffset position (IOOffset offset, Relative whence = SET);
36  virtual void resize (IOOffset size);
37  virtual void flush (void);
38  virtual void close (void);
39 
40 protected:
43 
50 };
51 
52 #endif // STORAGE_FACTORY_STORAGE_ACCOUNT_PROXY_H
virtual IOSize writev(const IOBuffer *from, IOSize n)
StorageAccountProxy(const std::string &storageClass, Storage *baseStorage)
virtual bool prefetch(const IOPosBuffer *what, IOSize n)
StorageAccount::Counter & m_statsWrite
StorageAccount::Counter & m_statsPosition
virtual void close(void)
Relative
Definition: Storage.h:23
StorageAccount::Counter & m_statsRead
virtual IOSize write(const void *from, IOSize n, IOOffset pos)
Definition: Storage.cc:59
virtual IOSize readv(IOBuffer *into, IOSize n)
StorageAccount::Counter & m_statsWriteV
StorageAccount::Counter & m_statsPrefetch
virtual IOOffset position(void) const
Definition: Storage.cc:95
virtual IOSize write(const void *from, IOSize n)
int read(void)
Definition: IOInput.cc:54
unsigned int offset(bool)
virtual void resize(IOOffset size)
virtual void flush(void)
virtual IOOffset size(void) const
Definition: Storage.cc:102
int64_t IOOffset
Definition: IOTypes.h:19
size_t IOSize
Definition: IOTypes.h:14
StorageAccount::Counter & m_statsReadV