diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-06-18 19:57:12 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-06-18 19:57:12 +0000 |
commit | 158d215b33d5b5bf07f73bb7547aae1fb12593b3 (patch) | |
tree | e4a0204370bc295509d1299c603dff13efe00cc3 /src/file.h | |
parent | ededeea60b8dca5320e741c7859b54f32ad75cf7 (diff) | |
download | libbu++-158d215b33d5b5bf07f73bb7547aae1fb12593b3.tar.gz libbu++-158d215b33d5b5bf07f73bb7547aae1fb12593b3.tar.bz2 libbu++-158d215b33d5b5bf07f73bb7547aae1fb12593b3.tar.xz libbu++-158d215b33d5b5bf07f73bb7547aae1fb12593b3.zip |
Added a new enum value to Bu::File, Bu::File::WriteNew which combines Write,
Truncate, and Create, the flags used most commonly when writing a new file.
Also added the Bu::Base64 filter class, it does base64 encoding and decoding,
it may need a couple more interfaces added, but for the most part, it's solid.
Diffstat (limited to 'src/file.h')
-rw-r--r-- | src/file.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,7 +65,9 @@ namespace Bu | |||
65 | Exclusive = 0x44, ///< Create file, if it exists then fail | 65 | Exclusive = 0x44, ///< Create file, if it exists then fail |
66 | 66 | ||
67 | // Helpful mixes | 67 | // Helpful mixes |
68 | ReadWrite = 0x03 ///< Open for reading and writing | 68 | ReadWrite = 0x03, ///< Open for reading and writing |
69 | WriteNew = 0x0E ///< Create a file (or truncate) for writing. | ||
70 | /// Same as Write|Create|Truncate | ||
69 | }; | 71 | }; |
70 | /** | 72 | /** |
71 | * Create a temp file and return its handle. The file is opened | 73 | * Create a temp file and return its handle. The file is opened |