camcom 1.0.3
 
Loading...
Searching...
No Matches
camcom::server Namespace Reference

Classes

struct  AcquisitionConfig
 Acquisition pipeline configuration. More...
 
struct  AdapterConfig
 Adapter configuration. More...
 
class  AdapterLoader
 Dynamic adapter loader Loads CamCom adapters from shared libraries at runtime. More...
 
class  CameraController
 
class  CameraServer
 Main camera server class Orchestrates all components: adapter, HTTP server, frame pipeline. More...
 
struct  DataFrame
 Container for a single frame of image data with metadata. More...
 
class  FitsRecorder
 Records frames to FITS files. More...
 
struct  GuiConfig
 GUI configuration. More...
 
class  HttpServer
 
struct  HttpServerConfig
 HTTP server configuration. More...
 
struct  LoggingConfig
 Logging configuration. More...
 
class  MockAdapter
 
struct  RecordingConfig
 Recording configuration. More...
 
struct  ServerConfig
 Main server configuration. More...
 
struct  SetupConfig
 Server setup / behavior configuration. More...
 
struct  StatisticsConfig
 Statistics configuration. More...
 
struct  StreamingConfig
 Streaming configuration. More...
 
class  StreamManager
 
struct  TelemetryConfig
 Telemetry / monitoring configuration. More...
 
struct  TimestampRow
 Per-frame timestamp row for the cube binary table extension. More...
 
struct  WebInterfaceConfig
 Web interface configuration. More...
 
struct  WebSocketHandlers
 

Typedefs

using SetValues = std::map<std::string, std::string>
 Set values configuration (use camera-native parameter names)
 
using HttpRequestHandler = std::function<std::string(const std::string&)>
 
using HttpRawRequestHandler = std::function<std::pair<std::string, std::string>(const std::string&)>
 
using WebSocketOnOpen = std::function<void()>
 
using WebSocketOnMessage = std::function<void(const std::string&)>
 
using WebSocketOnClose = std::function<void()>
 

Functions

std::string expandEnvVars (const std::string &str)
 
void mergeConfig (ServerConfig &dest, const ServerConfig &src)
 
ServerConfig loadConfig (const std::string &filename, bool require_camcom=true, const std::string &base_dir="")
 Load and parse YAML configuration file.
 
bool validateConfig (const ServerConfig &config)
 Validate configuration.
 
std::string base64Encode (const std::vector< uint8_t > &input)
 

Typedef Documentation

◆ HttpRawRequestHandler

using camcom::server::HttpRawRequestHandler = std::function<std::pair<std::string, std::string>(const std::string&)>

◆ HttpRequestHandler

using camcom::server::HttpRequestHandler = std::function<std::string(const std::string&)>

◆ SetValues

using camcom::server::SetValues = std::map<std::string, std::string>

Set values configuration (use camera-native parameter names)

◆ WebSocketOnClose

using camcom::server::WebSocketOnClose = std::function<void()>

◆ WebSocketOnMessage

using camcom::server::WebSocketOnMessage = std::function<void(const std::string&)>

◆ WebSocketOnOpen

using camcom::server::WebSocketOnOpen = std::function<void()>

Function Documentation

◆ base64Encode()

std::string camcom::server::base64Encode ( const std::vector< uint8_t > & input)

◆ expandEnvVars()

std::string camcom::server::expandEnvVars ( const std::string & str)

◆ loadConfig()

ServerConfig camcom::server::loadConfig ( const std::string & filename,
bool require_camcom = true,
const std::string & base_dir = "" )

Load and parse YAML configuration file.

Parameters
filenamePath to YAML configuration file
require_camcomWhether the camcom section is required (true for main config, false for includes)
base_dirBase directory for resolving relative include paths (empty for main config)
Returns
Parsed ServerConfig
Exceptions
std::runtime_errorif file cannot be parsed

◆ mergeConfig()

void camcom::server::mergeConfig ( ServerConfig & dest,
const ServerConfig & src )

◆ validateConfig()

bool camcom::server::validateConfig ( const ServerConfig & config)

Validate configuration.

Parameters
configConfiguration to validate
Returns
true if valid, false otherwise