1 // This file is part of Golly.
2 // See docs/License.html for the copyright notice.
3 
4 #ifndef WRITEPATTERN_H
5 #define WRITEPATTERN_H
6 class lifealgo;
7 
8 typedef enum {
9    RLE_format,          // run length encoded
10    XRLE_format,         // extended RLE
11    MC_format            // macrocell (native hashlife format)
12 } pattern_format;
13 
14 typedef enum {
15    no_compression,      // write uncompressed data
16    gzip_compression     // write gzip compressed data
17 } output_compression;
18 
19 /*
20  *   Save current pattern to a file.
21  */
22 const char *writepattern(const char *filename,
23                          lifealgo &imp,
24                          pattern_format format,
25                          output_compression compression,
26                          int top, int left, int bottom, int right);
27 
28 #endif
29