Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
application_runtime.h File Reference

Shared logging and operating-system checks for the survey executable. More...

#include <filesystem>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <mutex>
#include <sstream>
#include <cstring>
#include <cerrno>
#include <algorithm>
Include dependency graph for application_runtime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  TeeBuffer
 Stream one message to both the original console and the session log. More...
class  SessionLog
 Mirror stdout and stderr into one session file for a scoped run. More...

Functions

void posixCheck (bool success, const char *operation)
 Convert a failed POSIX result into an operation-specific exception.
void winCheck (bool success, const char *operation)
 Compatibility name for the shared POSIX failure check.

Detailed Description

Shared logging and operating-system checks for the survey executable.

Session output is mirrored rather than redirected exclusively so interactive progress remains visible while a diagnostic trail is collected. The stream-buffer lock keeps concurrent worker messages from interleaving between the console and session log.

Definition in file application_runtime.h.

Function Documentation

◆ posixCheck()

void posixCheck ( bool success,
const char * operation )
inline

Convert a failed POSIX result into an operation-specific exception.

Definition at line 128 of file application_runtime.h.

◆ winCheck()

void winCheck ( bool success,
const char * operation )
inline

Compatibility name for the shared POSIX failure check.

Definition at line 136 of file application_runtime.h.