inifile.hh (5543:3af77710f397) | inifile.hh (5544:65b27e939646) |
---|---|
1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 153 unchanged lines hidden (view full) --- 162 ~IniFile(); 163 164 /// Load parameter settings from given istream. This is a helper 165 /// function for load(string) and loadCPP(), which open a file 166 /// and then pass it here. 167 /// @retval True if successful, false if errors were encountered. 168 bool load(std::istream &f); 169 | 1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 153 unchanged lines hidden (view full) --- 162 ~IniFile(); 163 164 /// Load parameter settings from given istream. This is a helper 165 /// function for load(string) and loadCPP(), which open a file 166 /// and then pass it here. 167 /// @retval True if successful, false if errors were encountered. 168 bool load(std::istream &f); 169 |
170 /// Load the specified file, passing it through the C preprocessor. 171 /// Parameter settings found in the file will be merged with any 172 /// already defined in this object. 173 /// @param file The path of the file to load. 174 /// @param cppFlags Vector of extra flags to pass to cpp. 175 /// @retval True if successful, false if errors were encountered. 176 bool loadCPP(const std::string &file, std::vector<char *> &cppFlags); 177 | |
178 /// Load the specified file. 179 /// Parameter settings found in the file will be merged with any 180 /// already defined in this object. 181 /// @param file The path of the file to load. 182 /// @retval True if successful, false if errors were encountered. 183 bool load(const std::string &file); 184 185 /// Take string of the form "<section>:<parameter>=<value>" or --- 26 unchanged lines hidden --- | 170 /// Load the specified file. 171 /// Parameter settings found in the file will be merged with any 172 /// already defined in this object. 173 /// @param file The path of the file to load. 174 /// @retval True if successful, false if errors were encountered. 175 bool load(const std::string &file); 176 177 /// Take string of the form "<section>:<parameter>=<value>" or --- 26 unchanged lines hidden --- |