|
INGOR
|
IO routine abstractions. More...
#include <ytIO.h>
Public Member Functions | |
| ytIO_writer | ytIO_getWriter (const char *name) |
| Returns a network file writer. | |
| ytIO_writer | ytIO_getWriterMsg (const char *name, int mode, const char *module) |
| Returns a network file writer with messages. | |
| ytIO_reader | ytIO_getReader (const char *name) |
| Returns a network file reader. | |
IO routine abstractions.
| ytIO_reader ytIO_getReader | ( | const char * | name | ) |
Returns a network file reader.
This uses the substring after the last occurrence of "." (dot) as the name of file type. Therefore, the file name with an extension identical to the file type can also be used as the argument name.
| name |
| ytIO_writer ytIO_getWriter | ( | const char * | name | ) |
Returns a network file writer.
This uses the substring after the last occurrence of "." (dot) as the name of file type. Therefore, the file name with an extension identical to the file type can also be used as the argument name.
| name |
| ytIO_writer ytIO_getWriterMsg | ( | const char * | name, |
| int | mode, | ||
| const char * | module | ||
| ) |
Returns a network file writer with messages.
This is the same as ytIO_getWriter() except that you can choose the behavior when the file format name name is not found.
| name | file format name. See Network File Formats. |
| mode | ytIO_MODE_ERROR: exit the program with error code 1ytIO_MODE_WARNING: prints warning messages and return NULL.ytIO_MODE_NONE: do nothing even if the file format is not found. |