12 #ifndef ECL_DEVICES_OFILE_POS_HPP_ 13 #define ECL_DEVICES_OFILE_POS_HPP_ 20 #if defined(ECL_IS_POSIX) 26 #include <sys/types.h> 32 #include <ecl/concepts/containers.hpp> 33 #include <ecl/exceptions/macros.hpp> 34 #include <ecl/exceptions/standard_exception.hpp> 35 #include "detail/exception_handler_pos.hpp" 137 virtual
bool open() {
return ( file != NULL ) ?
true :
false; }
194 virtual const
std::
string& filename()
const {
return name; }
273 template <
typename ByteArray>
291 const Error& error()
const {
return error_handler; }
307 template <
typename ByteArray>
316 size_t written = fwrite(&byte_array[0],byte_array.size(),1,file);
323 return byte_array.size()*written;
337 class is_sink<OFile> :
public True {};
#define ecl_throw_decl(exception)
Standard ecl throw exception declaration.
#define LOC
Stringify the line of code you are at.
Defines validating functionality for the byte container concept.
Pre-processed macro definitions that define the target platform.
Standard exception type, provides code location and error string.
Array< char, 3 > ByteArray
#define ecl_compile_time_concept_check(Model)
Compile time concept checking assertion.
#define ecl_debug_throw_decl(exception)
Debug mode throw exception declaration.
#define ecl_debug_throw(exception)
Debug mode exception throw.