12 #ifndef ECL_DEVICES_OFILE_W32_HPP_ 13 #define ECL_DEVICES_OFILE_W32_HPP_ 20 #if defined(ECL_IS_WIN32) 26 #include <sys/types.h> 31 #include <ecl/concepts/containers.hpp> 32 #include <ecl/exceptions/macros.hpp> 33 #include <ecl/exceptions/standard_exception.hpp> 34 #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.
#define ecl_devices_PUBLIC
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.