]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/buffered.cpp
Make certain functions pure virtual so I won't forget to implement them
[libs/core.git] / source / io / buffered.cpp
index 53f83912a67bcf8ad5237cce37908afd44651359..6567fff9b3739e4fabf8abb1f2a706a98e0d5d85 100644 (file)
@@ -32,6 +32,11 @@ Buffered::~Buffered()
        delete[] buf;
 }
 
        delete[] buf;
 }
 
+void Buffered::set_block(bool)
+{
+       throw logic_error("Buffered::set_block");
+}
+
 void Buffered::flush()
 {
        if(cur_op==M_WRITE)
 void Buffered::flush()
 {
        if(cur_op==M_WRITE)
@@ -168,6 +173,11 @@ int Buffered::get()
        return static_cast<unsigned char>(c);
 }
 
        return static_cast<unsigned char>(c);
 }
 
+const Handle &Buffered::get_handle(Mode)
+{
+       throw logic_error("Buffered::get_handle");
+}
+
 void Buffered::set_op(Mode op)
 {
        if(op!=cur_op)
 void Buffered::set_op(Mode op)
 {
        if(op!=cur_op)