|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
#include <grass/config.h>#include <sys/types.h>#include <sys/stat.h>#include <stdio.h>#include <stdlib.h>#include <assert.h>#include <fcntl.h>#include <errno.h>#include <unistd.h>#include <cstring>#include <iostream>#include <grass/gis.h>#include "mm.h"

Go to the source code of this file.
Data Structures | |
| class | UntypedStream |
| class | AMI_STREAM< T > |
Macros | |
| #define | MAX_STREAMS_OPEN 200 |
| #define | DEBUG_DELETE if (0) |
| #define | DEBUG_STREAM_LEN if (0) |
| #define | DEBUG_ASSERT if (0) |
| #define | STREAM_TMPDIR "STREAM_DIR" |
| #define | BASE_NAME "STREAM" |
| #define | STREAM_BUFFER_SIZE (1 << 18) |
Functions | |
| int | ami_single_temp_name (const std::string &base, char *tmp_path) |
| FILE * | open_stream (int fd, AMI_stream_type st) |
| FILE * | open_stream (char *pathname, AMI_stream_type st) |
Variables | |
| const char * | ami_str_error [] |
| #define BASE_NAME "STREAM" |
Definition at line 76 of file ami_stream.h.
Definition at line 69 of file ami_stream.h.
Definition at line 67 of file ami_stream.h.
Definition at line 68 of file ami_stream.h.
| #define MAX_STREAMS_OPEN 200 |
Definition at line 63 of file ami_stream.h.
| #define STREAM_BUFFER_SIZE (1 << 18) |
Definition at line 78 of file ami_stream.h.
| #define STREAM_TMPDIR "STREAM_DIR" |
Definition at line 73 of file ami_stream.h.
Definition at line 83 of file ami_stream.h.
| Enumerator | |
|---|---|
| AMI_READ_STREAM | |
| AMI_WRITE_STREAM | |
| AMI_APPEND_STREAM | |
| AMI_READ_WRITE_STREAM | |
| AMI_APPEND_WRITE_STREAM | |
Definition at line 104 of file ami_stream.h.
| Enumerator | |
|---|---|
| PERSIST_DELETE | |
| PERSIST_PERSISTENT | |
| PERSIST_READ_ONCE | |
Definition at line 112 of file ami_stream.h.
Definition at line 71 of file ami_stream.cpp.
References assert, G_mkstemp(), GPATH_MAX, and STREAM_TMPDIR.
Referenced by AMI_STREAM< T >::AMI_STREAM(), and AMI_STREAM< T >::AMI_STREAM().
| FILE * open_stream | ( | char * | pathname, |
| AMI_stream_type | st | ||
| ) |
Definition at line 136 of file ami_stream.cpp.
References AMI_APPEND_STREAM, AMI_APPEND_WRITE_STREAM, AMI_READ_STREAM, AMI_READ_WRITE_STREAM, AMI_WRITE_STREAM, assert, G_fseek(), NULL, and st.
| FILE * open_stream | ( | int | fd, |
| AMI_stream_type | st | ||
| ) |
Definition at line 100 of file ami_stream.cpp.
References AMI_APPEND_STREAM, AMI_APPEND_WRITE_STREAM, AMI_READ_STREAM, AMI_READ_WRITE_STREAM, AMI_WRITE_STREAM, assert, fdopen, NULL, and st.
Referenced by AMI_STREAM< T >::AMI_STREAM(), and AMI_STREAM< T >::AMI_STREAM().
Definition at line 52 of file ami_stream.cpp.