- A std::ostream with ability to handle compressed files
| 55 | |
| 56 | //- A std::ostream with ability to handle compressed files |
| 57 | class OFstreamAllocator |
| 58 | { |
| 59 | friend class OFstream; |
| 60 | |
| 61 | ostream* ofPtr_; |
| 62 | |
| 63 | // Constructors |
| 64 | |
| 65 | //- Construct from pathname |
| 66 | OFstreamAllocator |
| 67 | ( |
| 68 | const fileName& pathname, |
| 69 | IOstream::compressionType compression=IOstream::UNCOMPRESSED, |
| 70 | const bool append = false |
| 71 | ); |
| 72 | |
| 73 | //- Destructor |
| 74 | ~OFstreamAllocator(); |
| 75 | |
| 76 | }; |
| 77 | |
| 78 | |
| 79 | /*---------------------------------------------------------------------------*\ |