45 #include "Moocho_ConfigDefs.hpp"
48 namespace FortranTypes {
55 enum EOpenStatus { OPEN_OLD = 0, OPEN_NEW = 1, OPEN_SCRATCH = 2
58 enum EOpenForm { OPEN_FORMATTED = 0, OPEN_UNFORMATTED = 1 };
60 enum EOpenBlank { OPEN_NULL = 0, OPEN_ZERO = 1 };
62 enum EOpenAccess { OPEN_SEQUENTIAL = 0, OPEN_DIRECT = 1 };
83 void f_open_file(
const f_int iunit,
const char file[]
84 , EOpenStatus status = OPEN_UNKNOWN, EOpenForm form = OPEN_FORMATTED
85 , EOpenBlank blank = OPEN_NULL, EOpenAccess access = OPEN_SEQUENTIAL
107 void f_close_file(
const f_int iunit,
bool keep =
true );
117 {
public:
OpenException(
const std::string& what_arg) : std::logic_error(what_arg) {}};
121 #endif // F_OPEN_FILE_H
Thrown if the open operation fails.
Thrown if the file name is not a valid ASCII string.