Debian Codegraph @

cvd_src/diskbuffer2.cc

raw symbols SCIP
1 #include <cvd/diskbuffer2.h>
2 #include <cvd/exceptions.h>
3
4 #include <sstream>
5 #include <string>
6
7 using namespace CVD::Exceptions;
8 using namespace std;
9
10 DiskBuffer2::NoFiles::NoFiles()
11 : All("DiskBuffer2 has an empty list of files.")
12 {
13 }
14
15 DiskBuffer2::BadImageSize::BadImageSize(const std::string& name)
16 : All("DiskBuffer2: Image \"" + name + "\" does not match diskbuffer size.")
17 {
18 }
19
20 DiskBuffer2::BadFile::BadFile(const std::string& name, int err)
21 : All("DiskBuffer2: File open on \"" + name + "\" failed with " + strerror(err))
22 {
23 }
24
25 DiskBuffer2::BadImage::BadImage(const std::string& file, const std::string& error)
26 : All("DiskBuffer2: File \"" + file + "\" load failed: " + error)
27 {
28 }
29
30 DiskBuffer2::EndOfBuffer::EndOfBuffer()
31 : All("DiskBuffer2 has reached the end of its list of files")
32 {
33 }
34
35 DiskBuffer2::BadSeek::BadSeek(double t)
36 : All([=] {
37 ostringstream ss;
38 ss << "DiskBuffer2: Seek to time " << t << "mS failed. No such time in the buffer";
39 return ss.str();
40 }())
41 {
42 }