00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1999, 2002, 2005, 2006, 2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_OUTPUT_BASE64_H 00021 #define LIBAEGIS_OUTPUT_BASE64_H 00022 00023 #include <libaegis/output.h> 00024 00029 class output_base64: 00030 public output 00031 { 00032 public: 00036 virtual ~output_base64(); 00037 00038 private: 00050 output_base64(const output::pointer &deeper); 00051 00052 public: 00064 static pointer create(const output::pointer &deeper); 00065 00066 protected: 00067 // See base class for documentation. 00068 nstring filename() const; 00069 00070 // See base class for documentation. 00071 const char *type_name() const; 00072 00073 // See base class for documentation. 00074 long ftell_inner() const; 00075 00076 // See base class for documentation. 00077 void write_inner(const void *data, size_t length); 00078 00079 // See base class for documentation. 00080 void end_of_line_inner(); 00081 00082 // See base class for documentation. 00083 int page_width() const; 00084 00085 // See base class for documentation. 00086 int page_length() const; 00087 00088 private: 00093 output::pointer deeper; 00094 00099 unsigned int residual_value; 00100 00105 int residual_bits; 00106 00111 int output_column; 00112 00116 long pos; 00117 00122 bool bol; 00123 00127 output_base64(); 00128 00132 output_base64(const output_base64 &); 00133 00137 output_base64 operator=(const output_base64 &); 00138 }; 00139 00140 #endif // LIBAEGIS_OUTPUT_BASE64_H