minor tweaks
This commit is contained in:
@ -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)
|
* This tokenizer will break down a string into sub-strings (i.e words)
|
||||||
* separated by the given separator characters.
|
* 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) :
|
Tokenizer::Tokenizer(const std::string & str, const std::string & separators) :
|
||||||
text(str), separators(separators), start(0), ntokens(std::string::npos)
|
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
|
/*! 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) {
|
ValueTokenizer::ValueTokenizer(const std::string & str, const std::string & separators) : tokens(str, separators) {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,10 +49,10 @@ public:
|
|||||||
std::vector<std::string> as_vector();
|
std::vector<std::string> as_vector();
|
||||||
};
|
};
|
||||||
|
|
||||||
/** \exception TokenizerException. Contains an error message string. */
|
|
||||||
class TokenizerException : public std::exception {
|
class TokenizerException : public std::exception {
|
||||||
std::string message;
|
std::string message;
|
||||||
public:
|
public:
|
||||||
|
/** Thrown during retrieving or skipping tokens */
|
||||||
TokenizerException(const std::string & msg, const std::string & token);
|
TokenizerException(const std::string & msg, const std::string & token);
|
||||||
|
|
||||||
~TokenizerException() throw() {
|
~TokenizerException() throw() {
|
||||||
|
|||||||
Reference in New Issue
Block a user