minor tweaks

This commit is contained in:
Axel Kohlmeyer 2020-08-30 14:28:19 -04:00
parent 8d45b724a6
commit f3ed1dea4d
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
2 changed files with 5 additions and 3 deletions

View File

@ -35,7 +35,9 @@ TokenizerException::TokenizerException(const std::string & msg, const std::strin
* This tokenizer will break down a string into sub-strings (i.e words)
* separated by the given separator characters.
*
* \sa LAMMPS_NS::ValueTokenizer TokenizerException */
* \exception TokenizerException
*
* \sa ValueTokenizer TokenizerException */
Tokenizer::Tokenizer(const std::string & str, const std::string & separators) :
text(str), separators(separators), start(0), ntokens(std::string::npos)
@ -147,7 +149,7 @@ std::vector<std::string> Tokenizer::as_vector() {
/*! Class for reading text with numbers
*
* \sa LAMMPS_NS::Tokenizer InvalidIntegerException InvalidFloatException */
* \sa Tokenizer InvalidIntegerException InvalidFloatException */
ValueTokenizer::ValueTokenizer(const std::string & str, const std::string & separators) : tokens(str, separators) {
}

View File

@ -49,10 +49,10 @@ public:
std::vector<std::string> as_vector();
};
/** \exception TokenizerException. Contains an error message string. */
class TokenizerException : public std::exception {
std::string message;
public:
/** Thrown during retrieving or skipping tokens */
TokenizerException(const std::string & msg, const std::string & token);
~TokenizerException() throw() {