|
srs-control 0.2.2
|
#include "EnumConvertFunctions.hpp"#include "srs/utils/CommonAlias.hpp"#include "srs/utils/CommonDefinitions.hpp"#include <asio/any_io_executor.hpp>#include <asio/use_awaitable.hpp>#include <asio/use_future.hpp>#include <bit>#include <bitset>#include <cstddef>#include <cstdint>#include <cstdlib>#include <expected>#include <filesystem>#include <fmt/format.h>#include <format>#include <magic_enum/magic_enum.hpp>#include <string>#include <string_view>#include <type_traits>

Go to the source code of this file.
Namespaces | |
| namespace | srs |
| namespace | srs::common |
Functions | |
| template<std::size_t bit_size, std::size_t max, std::size_t min = 0> | |
| constexpr auto | srs::common::subset (const std::bitset< bit_size > &bits) -> std::bitset< max - min > |
| template<std::size_t high_size, std::size_t low_size> | |
| constexpr auto | srs::common::merge_bits (const std::bitset< high_size > &high_bits, const std::bitset< low_size > &low_bits) -> std::bitset< high_size+low_size > |
| template<std::size_t low_size, std::size_t total_size> requires (total_size <= sizeof(std::uint64_t) * common::BYTE_BIT_LENGTH and total_size >= low_size) | |
| constexpr auto | srs::common::get_low_bits (const std::bitset< total_size > &bits) -> std::bitset< low_size > |
| template<std::size_t high_size, std::size_t total_size> requires (total_size <= sizeof(std::uint64_t) * common::BYTE_BIT_LENGTH and total_size >= high_size) | |
| constexpr auto | srs::common::get_high_bits (const std::bitset< total_size > &bits) -> std::bitset< high_size > |
| template<std::size_t bit_size> | |
| constexpr auto | srs::common::byte_swap (const std::bitset< bit_size > &bits) |
| template<typename T> | |
| constexpr auto | srs::common::gray_to_binary (T gray_val) |
| template<typename T> | |
| constexpr auto | srs::common::binary_to_gray (T bin_val) |
| constexpr auto | srs::common::get_shared_from_this (auto &&obj) |
| template<typename Enum> | |
| consteval auto | srs::common::get_enum_names () |
| constexpr auto | srs::common::insert_index_to_filename (std::string_view native_name, int idx) -> std::string |
| auto | srs::common::get_default_log_path () -> std::filesystem::path |
| auto | srs::common::get_default_config_path () -> std::filesystem::path |
| auto | srs::common::get_file_size (std::string_view filename) -> std::expected< std::size_t, std::string > |