support that LAMMPS_POTENTIALS is a real path variable with multiple entries, not just a single folder
This commit is contained in:
@ -33,7 +33,7 @@ class Tokenizer {
|
||||
size_t start;
|
||||
size_t ntokens;
|
||||
public:
|
||||
Tokenizer(const std::string & str, const std::string & separators = TOKENIZER_DEFAULT_SEPARATORS);
|
||||
Tokenizer(const std::string &str, const std::string &separators = TOKENIZER_DEFAULT_SEPARATORS);
|
||||
Tokenizer(Tokenizer &&);
|
||||
Tokenizer(const Tokenizer &);
|
||||
Tokenizer& operator=(const Tokenizer&) = default;
|
||||
@ -42,7 +42,7 @@ public:
|
||||
void reset();
|
||||
void skip(int n);
|
||||
bool has_next() const;
|
||||
bool contains(const std::string & str) const;
|
||||
bool contains(const std::string &str) const;
|
||||
std::string next();
|
||||
|
||||
size_t count();
|
||||
@ -52,7 +52,7 @@ public:
|
||||
class TokenizerException : public std::exception {
|
||||
std::string message;
|
||||
public:
|
||||
TokenizerException(const std::string & msg, const std::string & token);
|
||||
TokenizerException(const std::string &msg, const std::string &token);
|
||||
|
||||
~TokenizerException() throw() {
|
||||
}
|
||||
@ -64,20 +64,20 @@ public:
|
||||
|
||||
class InvalidIntegerException : public TokenizerException {
|
||||
public:
|
||||
InvalidIntegerException(const std::string & token) : TokenizerException("Not a valid integer number", token) {
|
||||
InvalidIntegerException(const std::string &token) : TokenizerException("Not a valid integer number", token) {
|
||||
}
|
||||
};
|
||||
|
||||
class InvalidFloatException : public TokenizerException {
|
||||
public:
|
||||
InvalidFloatException(const std::string & token) : TokenizerException("Not a valid floating-point number", token) {
|
||||
InvalidFloatException(const std::string &token) : TokenizerException("Not a valid floating-point number", token) {
|
||||
}
|
||||
};
|
||||
|
||||
class ValueTokenizer {
|
||||
Tokenizer tokens;
|
||||
public:
|
||||
ValueTokenizer(const std::string & str, const std::string & separators = TOKENIZER_DEFAULT_SEPARATORS);
|
||||
ValueTokenizer(const std::string &str, const std::string &separators = TOKENIZER_DEFAULT_SEPARATORS);
|
||||
ValueTokenizer(const ValueTokenizer &);
|
||||
ValueTokenizer(ValueTokenizer &&);
|
||||
ValueTokenizer& operator=(const ValueTokenizer&) = default;
|
||||
@ -90,7 +90,7 @@ public:
|
||||
double next_double();
|
||||
|
||||
bool has_next() const;
|
||||
bool contains(const std::string & value) const;
|
||||
bool contains(const std::string &value) const;
|
||||
void skip(int ntokens);
|
||||
|
||||
size_t count();
|
||||
|
||||
Reference in New Issue
Block a user