forked from lijiext/lammps
minor tweaks
This commit is contained in:
parent
8d45b724a6
commit
f3ed1dea4d
|
@ -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) {
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue