From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)."
This commit is contained in:
@@ -113,7 +113,7 @@ class OSG_EXPORT ArgumentParser
|
||||
/** Return the application name, as specified by argv[0] */
|
||||
std::string getApplicationName() const;
|
||||
|
||||
/** Return the position of an occurance of a string in the argument list.
|
||||
/** Return the position of an occurrence of a string in the argument list.
|
||||
* Return -1 if no string is found. */
|
||||
int find(const std::string& str) const;
|
||||
|
||||
@@ -137,8 +137,8 @@ class OSG_EXPORT ArgumentParser
|
||||
/** Return true if the specified argument matches the given string. */
|
||||
bool match(int pos, const std::string& str) const;
|
||||
|
||||
/** Search for an occurance of a string in the argument list. If found,
|
||||
* remove that occurance and return true. Otherwise, return false. */
|
||||
/** Search for an occurrence of a string in the argument list. If found,
|
||||
* remove that occurrence and return true. Otherwise, return false. */
|
||||
bool read(const std::string& str);
|
||||
bool read(const std::string& str, Parameter value1);
|
||||
bool read(const std::string& str, Parameter value1, Parameter value2);
|
||||
@@ -172,7 +172,7 @@ class OSG_EXPORT ArgumentParser
|
||||
|
||||
typedef std::map<std::string,ErrorSeverity> ErrorMessageMap;
|
||||
|
||||
/** Return the error flag, true if an error has occured when reading arguments. */
|
||||
/** Return the error flag, true if an error has occurred when reading arguments. */
|
||||
bool errors(ErrorSeverity severity=BENIGN) const;
|
||||
|
||||
/** Report an error message by adding to the ErrorMessageMap. */
|
||||
@@ -181,13 +181,13 @@ class OSG_EXPORT ArgumentParser
|
||||
/** For each remaining option, report it as unrecognized. */
|
||||
void reportRemainingOptionsAsUnrecognized(ErrorSeverity severity=BENIGN);
|
||||
|
||||
/** Return the error message, if any has occured. */
|
||||
/** Return the error message, if any has occurred. */
|
||||
ErrorMessageMap& getErrorMessageMap() { return _errorMessageMap; }
|
||||
|
||||
/** Return the error message, if any has occured. */
|
||||
/** Return the error message, if any has occurred. */
|
||||
const ErrorMessageMap& getErrorMessageMap() const { return _errorMessageMap; }
|
||||
|
||||
/** Write error messages to the given ostream, if at or above the given severiity. */
|
||||
/** Write error messages to the given ostream, if at or above the given severity. */
|
||||
void writeErrorMessages(std::ostream& output,ErrorSeverity sevrity=BENIGN);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user