Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (38 sloc) 1.599 kb
5282bc2 Henner Zeller o Move PassThrougHandler to its won file.
authored
1 // -*- c++ -*-
2 // Folve - A fuse filesystem that convolves audio files on-the-fly.
3 //
4 // Copyright (C) 2012 Henner Zeller <h.zeller@acm.org>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
24e7411 Henner Zeller o Move SndFileHandler as ConvolveFileHandler out of folve-filesystem.cc
authored
18 #ifndef FOLVE_PASS_THROUGH_HANDLER_H_
19 #define FOLVE_PASS_THROUGH_HANDLER_H_
5282bc2 Henner Zeller o Move PassThrougHandler to its won file.
authored
20
21 #include "file-handler.h"
22
23 // Very simple file handler that just passes through the original file.
24 // Used for everything that is not a sound-file or for which no filter
25 // configuration could be found.
26 class PassThroughHandler : public FileHandler {
27 public:
28 PassThroughHandler(int filedes, const std::string &filter_id,
29 const HandlerStats &known_stats);
30 ~PassThroughHandler();
31
32 virtual int Read(char *buf, size_t size, off_t offset);
33 virtual int Stat(struct stat *st);
34 virtual void GetHandlerStatus(HandlerStats *stats);
35
36 private:
37 const int filedes_;
38 size_t file_size_;
39 long unsigned int max_accessed_;
40 HandlerStats info_stats_;
41 };
42
24e7411 Henner Zeller o Move SndFileHandler as ConvolveFileHandler out of folve-filesystem.cc
authored
43 #endif // FOLVE_PASS_THROUGH_HANDLER_H_
Something went wrong with that request. Please try again.