Create and implemented userManager class
This commit is contained in:
14
src/usermanager.cpp
Normal file
14
src/usermanager.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "usermanager.h"
|
||||
|
||||
std::vector<std::string> splitLogFile(const std::string& input, char delimiter = '|')
|
||||
{
|
||||
std::vector<std::string> ret;
|
||||
std::stringstream ss(input);
|
||||
std::string token;
|
||||
|
||||
while (std::getline(ss, token, delimiter)) {
|
||||
ret.push_back(token);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user