sbuild 1.4.23
|
00001 /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org> 00002 * 00003 * schroot is free software: you can redistribute it and/or modify it 00004 * under the terms of the GNU General Public License as published by 00005 * the Free Software Foundation, either version 3 of the License, or 00006 * (at your option) any later version. 00007 * 00008 * schroot is distributed in the hope that it will be useful, but 00009 * WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program. If not, see 00015 * <http://www.gnu.org/licenses/>. 00016 * 00017 *********************************************************************/ 00018 00019 #ifndef SBUILD_NULL_H 00020 #define SBUILD_NULL_H 00021 00022 #include <map> 00023 #include <stdexcept> 00024 #include <string> 00025 00026 namespace sbuild 00027 { 00028 00033 class null 00034 { 00035 public: 00043 template <class charT, class traits> 00044 friend 00045 std::basic_ostream<charT,traits>& 00046 operator << (std::basic_ostream<charT,traits>& stream, 00047 null const& rhs) 00048 { 00049 return stream << null_output(); 00050 } 00051 00052 private: 00058 static const char * 00059 null_output (); 00060 }; 00061 00062 } 00063 00064 #endif /* SBUILD_NULL_H */ 00065 00066 /* 00067 * Local Variables: 00068 * mode:C++ 00069 * End: 00070 */