22 #include <system/FileSystem.h> 23 #include <system/Path.h> 30 #include "NamespaceHelper.h" 32 ONIXS_HANDLER_NAMESPACE_BEGIN
37 FileSystem::EntriesNames logs;
39 FileSystem::getEntries(root,
"*.log", &logs);
41 std::sort(logs.begin(), logs.end());
46 FileSystem::EntriesNames::const_iterator logEntry = logs.begin();
47 logEntry != logs.end(); ++logEntry)
49 Path fullPath(rootPath);
51 fullPath.append(*logEntry);
53 gatheredLogs->push_back(fullPath.toString());
57 ReplayListener::~ReplayListener()
62 ONIXS_HANDLER_NAMESPACE_END
void ONIXS_SGXTITAN_ITCH_API gatherLogs(HandlerLogs *gatheredLogs, const std::string &root)
Gathers log files logs which are stored in a given folder.
std::vector< std::string > HandlerLogs
Ordered list of logs to be replayed.