Changeset 14708 in vbox
- Timestamp:
- Nov 27, 2008 2:37:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r14222 r14708 75 75 * necessary, the API will make a copy of the supplied string. 76 76 * 77 * Error rep rting is perfomed using C++ exceptions. All exceptions thrown by77 * Error reporting is perfomed using C++ exceptions. All exceptions thrown by 78 78 * this API are derived from settings::Error. This doesn't cover exceptions 79 79 * that may be thrown by third-party library calls made by this API. … … 184 184 catch (const XmlTreeBackend::Error &err) 185 185 { 186 // this is an XmlTreeBackend specific exception exceptionthat may186 // this is an XmlTreeBackend specific exception that may 187 187 // happen in case of XML parse or validation errors 188 188 printf ("Could not load the settings file '%s'.\n%s"), … … 197 197 AssertMsgFailed ("Unexpected exception '%s' (%s)\n", 198 198 typeid (err).name(), err.what()); 199 } 199 200 catch (...) 200 201 { … … 210 211 * templated Key::value<>() method that can convert the string to a value of 211 212 * the given type for you (and throw exceptions when the converison is not 212 * possible). Similarly, the Key::setStringValue() meth id is used to set a raw213 * possible). Similarly, the Key::setStringValue() method is used to set a raw 213 214 * string value and there is a templated Key::setValue<>() method to set a 214 215 * typed value which will implicitly convert it to a string. … … 1317 1318 * to such non-reentrant parts using a global mutex so that only one thread can 1318 1319 * use non-reentrant code at a time. Currently, this relates to the #rawRead() 1319 * method (and to #read() as a consequence). This me nas that only one thread can1320 * method (and to #read() as a consequence). This means that only one thread can 1320 1321 * parse an XML stream at a time; other threads trying to parse same or 1321 1322 * different streams using different XmlTreeBackend and Input instances
Note:
See TracChangeset
for help on using the changeset viewer.