ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
Loading...
Searching...
No Matches
foresthub::platform::PlatformContext Class Referenceabstract

Holds all platform subsystems and provides a factory for HTTP clients. More...

#include <platform.hpp>

Public Member Functions

virtual std::shared_ptr< core::HttpClientCreateHttpClient (const HttpClientConfig &config)=0
 Create a platform-specific HTTP client.

Public Attributes

std::shared_ptr< NetworkInterfacenetwork
 Network connectivity subsystem.
std::shared_ptr< ConsoleInterfaceconsole
 Console I/O subsystem.
std::shared_ptr< TimeInterfacetime
 Time and delay subsystem.
std::shared_ptr< CryptoInterfacecrypto
 TLS/crypto subsystem.
std::shared_ptr< GpioInterfacegpio
 GPIO pin I/O subsystem (nullptr if FORESTHUB_ENABLE_GPIO not defined).

Detailed Description

Holds all platform subsystems and provides a factory for HTTP clients.

Created once at startup via CreatePlatform() and reused for the entire application lifetime.

Member Function Documentation

◆ CreateHttpClient()

virtual std::shared_ptr< core::HttpClient > foresthub::platform::PlatformContext::CreateHttpClient ( const HttpClientConfig & config)
pure virtual

Create a platform-specific HTTP client.

Parameters
configConnection parameters (host, port, TLS, timeout).
Returns
HTTP client configured for the given parameters.

The documentation for this class was generated from the following file: