move varstyle array definition to Variable class so it can be used in a more general way

This commit is contained in:
Axel Kohlmeyer
2024-05-22 23:42:56 -04:00
parent a8687b5372
commit c1538c2f78
3 changed files with 11 additions and 9 deletions

View File

@ -56,7 +56,7 @@ class Variable : protected Pointers {
int nvar; // # of defined variables
char **names; // name of each variable
// must match "varstyles" array in info.cpp
// must match "varstyles" array in variables.cpp, UNKNOWN must be last.
enum {
INDEX,
LOOP,
@ -73,9 +73,11 @@ class Variable : protected Pointers {
VECTOR,
PYTHON,
TIMER,
INTERNAL
INTERNAL,
UNKNOWN
};
static constexpr int VALUELENGTH = 64;
static const std::vector<std::string> varstyles;
private:
int me;