remove broken list parsing implementations
This commit is contained in:
parent
e177b7231f
commit
cc538d835e
1 changed files with 9 additions and 6 deletions
|
@ -246,32 +246,35 @@ inline void toLower(std::string &str) {
|
|||
#define VAR_LIST(section, name, type) \
|
||||
VAR_GENERIC(section, name,\
|
||||
std::vector<type> value;\
|
||||
std::stringstream ss(line);\
|
||||
)
|
||||
/*std::stringstream ss(line);\
|
||||
type val;\
|
||||
while (ss >> val) {\
|
||||
std::getline(configFile, line);\
|
||||
}\
|
||||
)
|
||||
)*/
|
||||
#define VAR_LIST_SEP(section, name, type, sep) \
|
||||
VAR_GENERIC(section, name,\
|
||||
std::vector<type> value;\
|
||||
std::stringstream ss(line);\
|
||||
)
|
||||
/*std::stringstream ss(line);\
|
||||
std::string val;\
|
||||
type type_val;\
|
||||
while (std::stringstream(val) >> type_val) {\
|
||||
std::getline(ss, val, ',');\
|
||||
}\
|
||||
)
|
||||
)*/
|
||||
#define VAR_LIST_SEP_P(section, name, type, sep, prefix) \
|
||||
VAR_GENERIC_P(section, name, prefix,\
|
||||
std::vector<type> value;\
|
||||
std::stringstream ss(line);\
|
||||
)
|
||||
/*std::stringstream ss(line);\
|
||||
std::string val;\
|
||||
type type_val;\
|
||||
while (std::stringstream(val) >> type_val) {\
|
||||
std::getline(ss, val, ',');\
|
||||
}\
|
||||
)
|
||||
)*/
|
||||
#define VAR_LIST_NUMBERED(section, name, type) \
|
||||
VAR_GENERIC(section, name,\
|
||||
std::vector<type> value;\
|
||||
|
|
Loading…
Reference in a new issue