载入中...
搜索中...
未找到
ServiceInterfaces.h
浏览该文件的文档.
Minimal file read / write / existence surface. Providers: eve::filesystem::Filesystem....
Definition ServiceInterfaces.h:23
virtual ~IFileSystem()=default
Releases IFileSystem resources.
virtual bool readFile(const std::string &path, std::vector< uint8_t > &out)=0
Reads an entire file.
virtual bool fileExists(const std::string &path)=0
True when the path exists (file or directory).
virtual bool writeFile(const std::string &path, const void *data, size_t size)=0
Writes bytes to a file.
static constexpr const char * capabilityName
Definition ServiceInterfaces.h:25
Minimal synchronous HTTP request surface. Providers: eve::network::Network. Mocks return canned statu...
Definition ServiceInterfaces.h:42
static constexpr const char * capabilityName
Definition ServiceInterfaces.h:44
virtual bool httpRequest(const std::string &method, const std::string &url, const std::string &body, int timeoutMs, int &status, std::string &responseBody)=0
Performs one HTTP request synchronously.
Monotonic elapsed-seconds clock. Providers: eve::timer::Timer. Mocks return scripted values so time-d...
Definition ServiceInterfaces.h:68
static constexpr const char * capabilityName
Definition ServiceInterfaces.h:70
virtual double elapsedSeconds()=0
Seconds since the provider was created (monotonic, non-decreasing).
Definition GpuTimer.h:10