-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Tiaansu/fetch-log
Fetch logs, case sensitive support, automatic cleanup of logs result
- Loading branch information
Showing
14 changed files
with
488 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "logs-result.hpp" | ||
#include "component.hpp" | ||
|
||
using namespace Impl; | ||
|
||
int LogsResult::getID() const | ||
{ | ||
return poolID; | ||
} | ||
|
||
std::string LogsResult::getLog(int row) const | ||
{ | ||
return logs_.at(row); | ||
} | ||
|
||
LogsResult::LogsResult(std::vector<std::string> logs) | ||
: logs_(std::move(logs)) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include <sdk.hpp> | ||
#include <Impl/pool_impl.hpp> | ||
|
||
using namespace Impl; | ||
|
||
struct ILogsResult | ||
{ | ||
virtual int getID() const = 0; | ||
|
||
virtual std::string getLog(int row) const = 0; | ||
}; | ||
|
||
class LogsResult final | ||
: public ILogsResult | ||
, public PoolIDProvider | ||
, public NoCopy | ||
{ | ||
private: | ||
std::vector<std::string> logs_; | ||
|
||
public: | ||
int getID() const override; | ||
|
||
std::string getLog(int row) const override; | ||
|
||
LogsResult(std::vector<std::string> logs); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.