Android-cuttlefish cvd tool
Namespaces | Macros | Functions
utils.h File Reference
#include <algorithm>
#include <sstream>
#include <string>
#include <string_view>
#include <type_traits>
#include "absl/log/check.h"
#include "absl/log/log.h"
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::confui
 

Macros

#define ConfUiLog(LOG_LEVEL)   LOG(LOG_LEVEL) << "ConfUI: "
 
#define ConfUiLogDebug   VLOG(0) << "ConfUI: "
 
#define ConfUiLogVerbose   VLOG(1) << "ConfUI: "
 
#define ConfUiCheck(cond)   CHECK(cond) << "ConfUI: "
 

Functions

template<typename T >
constexpr std::underlying_type_t< T > cuttlefish::confui::Enum2Base (T t)
 
template<typename Delim , typename... Args>
std::string cuttlefish::confui::ArgsToStringWithDelim (Delim &&delim, Args &&... args)
 
template<typename... Args>
std::string cuttlefish::confui::ArgsToString (Args &&... args)
 
bool cuttlefish::confui::IsOnlyDigits (std::string_view src)
 

Macro Definition Documentation

◆ ConfUiCheck

#define ConfUiCheck (   cond)    CHECK(cond) << "ConfUI: "

◆ ConfUiLog

#define ConfUiLog (   LOG_LEVEL)    LOG(LOG_LEVEL) << "ConfUI: "

◆ ConfUiLogDebug

#define ConfUiLogDebug   VLOG(0) << "ConfUI: "

◆ ConfUiLogVerbose

#define ConfUiLogVerbose   VLOG(1) << "ConfUI: "