Namespaces | Functions
Mavutils

Some useful utils. More...

Collaboration diagram for Mavutils:

Namespaces

 mavconn
 
 mavconn::utils
 

Functions

template<typename ... Args>
std::string mavconn::utils::format (const std::string &fmt, Args ... args)
 Make printf-formatted std::string. More...
 
constexpr size_t mavconn::utils::operator"" _KiB (unsigned long long sz)
 
template<typename ... Args>
bool mavconn::utils::set_this_thread_name (const std::string &name, Args &&... args)
 Set name to current thread, printf-like. More...
 
template<typename T >
const std::string mavconn::utils::to_string_ss (T &obj)
 Convert to string objects with operator <<. More...
 

Detailed Description

Some useful utils.

Function Documentation

◆ format()

template<typename ... Args>
std::string mavconn::utils::format ( const std::string &  fmt,
Args ...  args 
)

Make printf-formatted std::string.

Definition at line 35 of file thread_utils.h.

◆ operator"" _KiB()

constexpr size_t mavconn::utils::operator"" _KiB ( unsigned long long  sz)

Definition at line 78 of file thread_utils.h.

◆ set_this_thread_name()

template<typename ... Args>
bool mavconn::utils::set_this_thread_name ( const std::string &  name,
Args &&...  args 
)

Set name to current thread, printf-like.

Parameters
[in]namename for thread
Returns
true if success
Note
Only for Linux target
Todo:
add for other posix system

Definition at line 55 of file thread_utils.h.

◆ to_string_ss()

template<typename T >
const std::string mavconn::utils::to_string_ss ( T &  obj)
inline

Convert to string objects with operator <<.

Definition at line 71 of file thread_utils.h.



libmavconn
Author(s): Vladimir Ermakov
autogenerated on Tue Jun 13 2023 02:17:45