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. 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 --- |