TPIE

2362a60
tpie::open Struct Reference

Public Types

enum  type {
  read_only = 00000001, write_only = 00000002, access_normal = 00000004, access_random = 00000010,
  compression_normal = 00000020, compression_all = 00000040, defaults = 0
}
 

Static Public Member Functions

static type translate (access_type accessType, cache_hint cacheHint, compression_flags compressionFlags)
 
static cache_hint translate_cache (open::type openFlags)
 
static compression_flags translate_compression (open::type openFlags)
 

Friends

open::type operator| (open::type a, open::type b)
 
open::type operator& (open::type a, open::type b)
 
open::type operator^ (open::type a, open::type b)
 
open::type operator~ (open::type a)
 

Detailed Description

Definition at line 42 of file stream.h.

Member Enumeration Documentation

Enumerator
read_only 

Open a file for reading only.

write_only 

Open a file for writing only.

Content is truncated.

access_normal 

Neither sequential access nor random access is intended.

Corresponds to POSIX_FADV_NORMAL.

access_random 

Random access is intended.

Corresponds to POSIX_FADV_RANDOM and FILE_FLAG_RANDOM_ACCESS (Win32).

compression_normal 

Compress some blocks according to available resources (time, memory).

compression_all 

Compress all blocks according to the preferred compression scheme which can be set using tpie::the_compressor_thread().set_preferred_compression().

Definition at line 43 of file stream.h.

43  {
45  read_only = 00000001,
48  write_only = 00000002,
51  access_normal = 00000004,
54  access_random = 00000010,
57  compression_normal = 00000020,
61  compression_all = 00000040,
62 
63  defaults = 0
64  };
Open a file for reading only.
Definition: stream.h:45
Random access is intended.
Definition: stream.h:54
Compress some blocks according to available resources (time, memory).
Definition: stream.h:57
Compress all blocks according to the preferred compression scheme which can be set using tpie::the_co...
Definition: stream.h:61
Neither sequential access nor random access is intended.
Definition: stream.h:51
Open a file for writing only.
Definition: stream.h:48

The documentation for this struct was generated from the following file: