- Home
- About DUNE
- Download
- Documentation
- Community
- Development
00001 // -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 // vi: set et ts=8 sw=2 sts=2: 00003 #ifndef DUNE_CONFIGPARSER_HH 00004 #define DUNE_CONFIGPARSER_HH 00005 00006 #ifndef SILENCE_CONFIGPARSER_HH_DEPRECATION 00007 #warning This file has been deprecated in dune-common 2.1, and will most likely \ 00008 be removed in dune-common 2.2. In its place, use parametertree.hh to keep \ 00009 hierarchical string-based data, and parametertreeparser.hh to read such data \ 00010 from files and streams. 00011 #endif // !SILENCE_CONFIGPARSER_HH_DEPRECATION 00012 00013 #include <iostream> 00014 #include <istream> 00015 #include <map> 00016 #include <ostream> 00017 #include <string> 00018 #include <typeinfo> 00019 #include <vector> 00020 00021 #include <dune/common/fvector.hh> 00022 #include <dune/common/deprecated.hh> 00023 #include <dune/common/parametertree.hh> 00024 00025 namespace Dune { 00026 00073 class ConfigParser 00074 : public ParameterTree 00075 { 00076 public: 00077 00080 ConfigParser(); 00081 00082 00096 void parseStream(std::istream& in, 00097 bool overwrite); 00098 00099 00111 void parseStream(std::istream& in, 00112 const std::string srcname = "stream", 00113 bool overwrite = true); 00114 00115 00125 void parseFile(std::string file, bool overwrite = true); 00126 00127 00135 void parseCmd(int argc, char* argv []); 00136 00137 00144 ConfigParser& sub(const std::string& sub) DUNE_DEPRECATED; 00145 00146 00153 const ConfigParser& sub(const std::string& sub) const DUNE_DEPRECATED; 00154 00155 }; 00156 00157 } // end namespace Dune 00158 00159 #endif // DUNE_CONFIGPARSER_HH
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].