#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.
|
enum | AMI_err {
AMI_ERROR_NO_ERROR = 0
, AMI_ERROR_IO_ERROR
, AMI_ERROR_END_OF_STREAM
, AMI_ERROR_OUT_OF_RANGE
,
AMI_ERROR_READ_ONLY
, AMI_ERROR_OS_ERROR
, AMI_ERROR_MM_ERROR
, AMI_ERROR_OBJECT_INITIALIZATION
,
AMI_ERROR_PERMISSION_DENIED
, AMI_ERROR_INSUFFICIENT_MAIN_MEMORY
, AMI_ERROR_INSUFFICIENT_AVAILABLE_STREAMS
, AMI_ERROR_ENV_UNDEFINED
,
AMI_ERROR_NO_MAIN_MEMORY_OPERATION
} |
|
enum | AMI_stream_type {
AMI_READ_STREAM = 1
, AMI_WRITE_STREAM
, AMI_APPEND_STREAM
, AMI_READ_WRITE_STREAM
,
AMI_APPEND_WRITE_STREAM
} |
|
enum | persistence { PERSIST_DELETE = 0
, PERSIST_PERSISTENT
, PERSIST_READ_ONCE
} |
|
◆ BASE_NAME
#define BASE_NAME "STREAM" |
◆ DEBUG_ASSERT
#define DEBUG_ASSERT if (0) |
◆ DEBUG_DELETE
#define DEBUG_DELETE if (0) |
◆ DEBUG_STREAM_LEN
#define DEBUG_STREAM_LEN if (0) |
◆ MAX_STREAMS_OPEN
#define MAX_STREAMS_OPEN 200 |
◆ STREAM_BUFFER_SIZE
#define STREAM_BUFFER_SIZE (1 << 18) |
◆ STREAM_TMPDIR
#define STREAM_TMPDIR "STREAM_DIR" |
◆ AMI_err
Enumerator |
---|
AMI_ERROR_NO_ERROR | |
AMI_ERROR_IO_ERROR | |
AMI_ERROR_END_OF_STREAM | |
AMI_ERROR_OUT_OF_RANGE | |
AMI_ERROR_READ_ONLY | |
AMI_ERROR_OS_ERROR | |
AMI_ERROR_MM_ERROR | |
AMI_ERROR_OBJECT_INITIALIZATION | |
AMI_ERROR_PERMISSION_DENIED | |
AMI_ERROR_INSUFFICIENT_MAIN_MEMORY | |
AMI_ERROR_INSUFFICIENT_AVAILABLE_STREAMS | |
AMI_ERROR_ENV_UNDEFINED | |
AMI_ERROR_NO_MAIN_MEMORY_OPERATION | |
Definition at line 83 of file ami_stream.h.
◆ AMI_stream_type
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.
◆ persistence
Enumerator |
---|
PERSIST_DELETE | |
PERSIST_PERSISTENT | |
PERSIST_READ_ONCE | |
Definition at line 112 of file ami_stream.h.
◆ ami_single_temp_name()
int ami_single_temp_name |
( |
const std::string & |
base, |
|
|
char * |
tmp_path |
|
) |
| |
◆ open_stream() [1/2]
◆ open_stream() [2/2]
◆ ami_str_error
const char* ami_str_error[] |
|
extern |