sbuild
1.5.4
|
00001 /* Copyright © 2011 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_FEATURE_H 00020 #define SBUILD_FEATURE_H 00021 00022 #include <map> 00023 #include <ostream> 00024 #include <string> 00025 00026 #include <boost/format.hpp> 00027 00028 namespace sbuild 00029 { 00030 00031 class feature 00032 { 00033 public: 00034 feature (std::string const& feature, 00035 std::string const& description); 00036 00037 ~feature (); 00038 00039 static std::ostream& 00040 print_features (std::ostream& stream); 00041 00042 private: 00043 static std::map<std::string,std::string>& 00044 registered_features (); 00045 }; 00046 00047 } 00048 00049 #endif /* SBUILD_FEATURE_H */ 00050 00051 /* 00052 * Local Variables: 00053 * mode:C++ 00054 * End: 00055 */