-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrite2disk.cpp
More file actions
32 lines (23 loc) · 973 Bytes
/
write2disk.cpp
File metadata and controls
32 lines (23 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************ *
* Written by Alex de Kruijff 21 April 2009 *
* ************************************************************************ *
* This source was written with a tabstop every four characters *
* In vi type :set ts=4 *
* ************************************************************************ */
#include "configure.h"
#ifdef WITH_DISK_STORAGE
#include "filename.h"
#include "filegroup.h"
#include "sizegroup.h"
#include "holder.h"
#include "write2disk.h"
int Write2Disk::visit(Holder &holder) { return 0; }
int Write2Disk::visit(SizeGroup &sizegroup)
{
if ((fileSize = sizegroup.getFileSize()) < max)
counter += sizegroup.diskWrite(storage);
return 1;
}
int Write2Disk::visit(FileGroup &filegroup) { return 1; }
void Write2Disk::visit(Filename &filename) {}
#endif // WITH_DISK_STORAGE