Space-ng SDK
Contents:
Guides
Getting Started
SSH Setup for HDK
Configuring GMSL Cameras
Development Workflow
Deployment Workflow
Video Encoding
RTSP Streaming
GStreamer Plugin (sol3src)
Customizing the Development Container
Updating Your Sol3
Concepts
Multi-Stage Dockerfile
Development Container
Sysroots
Sol3 OS
Tutorials
01 Camera Client Tutorial
02 Carrier Board Client Tutorial
03 Multi-Camera Control Tutorial
04 External Trigger Tutorial
05 Auto White Balance Tutorial
Reference
CLI Tools Reference
CMake Presets Reference
GitHub Personal Access Token
Hardware
vcpkg Reference
System Requirements
C++ Classes
C++ Files and Schemas
Space-ng SDK
Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/cpp/enum.h Source File
/workspaces/astro/sol3-sdk/cpp/sol3/cpp/enum.h Source File
Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/cpp/enum.h Source File
Space-ng SDK
sol3-sdk
cpp
sol3
cpp
enum.h
Go to the documentation of this file.
1
2
// Copyright (c) Space-ng, inc. All rights reserved.
3
4
#pragma once
5
6
#include <type_traits>
7
8
namespace
sol3::cpp
{
9
10
// Extract the underlying value type from an enumeration
11
template
<
typename
T>
12
auto
constexpr
toUnderlying
(T value) {
13
return
static_cast<
typename std::underlying_type<T>::type
>
(value);
14
}
15
16
}
// namespace sol3::cpp
sol3::cpp
Definition:
enum.h:8
sol3::cpp::toUnderlying
constexpr auto toUnderlying(T value)
Definition:
enum.h:12
Generated by
1.9.1
Version: 0.6.0