A helper class allowing to construct a default Platform and to obtain the Scheduler used by Platform before the latter is constructed. More...
#include <Platform.h>
Public Types | |
typedef std::shared_ptr < OptionalAsyncExecutor > | AsyncExecutorPtr |
Private. | |
Public Member Functions | |
Scheduler | GetDefaultAsyncExecutor () |
Constructs a default executor for asynchronous tasks. More... | |
void | CreateDefaultTimer () |
Constructs default implementation of ITimer . | |
void | CreateDefaultFileSystem (const std::string &basePath=std::string()) |
Constructs default implementation of IFileSystem . More... | |
void | CreateDefaultWebRequest (WebRequestSyncPtr webRequest=nullptr) |
Constructs default implementation of IWebRequest . | |
void | CreateDefaultLogSystem () |
Constructs default implementation of LogSystem . | |
std::unique_ptr< Platform > | CreatePlatform () |
Constructs Platform with default implementations of platform interfaces when a corresponding field is nullptr and with a default Scheduler. | |
Additional Inherited Members | |
![]() | |
LogSystemPtr | logSystem |
TimerPtr | timer |
WebRequestPtr | webRequest |
FileSystemPtr | fileSystem |
A helper class allowing to construct a default Platform and to obtain the Scheduler used by Platform before the latter is constructed.
void AdblockPlus::DefaultPlatformBuilder::CreateDefaultFileSystem | ( | const std::string & | basePath = std::string() | ) |
Constructs default implementation of IFileSystem
.
basePath | A working directory for file system operations. |
Scheduler AdblockPlus::DefaultPlatformBuilder::GetDefaultAsyncExecutor | ( | ) |
Constructs a default executor for asynchronous tasks.
When Platform is being destroyed it starts to ignore new tasks and waits for finishing of already running tasks.