WarpX
Namespaces | Macros | Functions
TextMsg.H File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 ablastr::utils
 
 ablastr::utils::TextMsg
 

Macros

#define ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE(EX, MSG)   (EX)?((void)0) : ablastr::utils::TextMsg::Assert( # EX , __FILE__, __LINE__ , MSG)
 

Functions

std::vector< std::string > ablastr::utils::automatic_text_wrap (const std::string &text, const int max_line_length)
 This function performs automatic text wrapping on a string, returning an array of strings each not exceeding the maximum line length (unless the text contains a word exceeding the maximum line length). More...
 
std::string ablastr::utils::TextMsg::Err (const std::string &msg, const bool do_text_wrapping=true)
 This function formats a text message as an error message, adding the '### ERROR: ' prefix and (by default) performing text wrapping. More...
 
std::string ablastr::utils::TextMsg::Info (const std::string &msg, const bool do_text_wrapping=true)
 This function formats a text message as an info message, adding the '### INFO: ' prefix and (by default) performing text wrapping. More...
 
std::string ablastr::utils::TextMsg::Warn (const std::string &msg, const bool do_text_wrapping=true)
 This function formats a text message as a warning message, adding the '### WARN: ' prefix and (by default) performing text wrapping. Warning: this format is not used by the WarningLogger, which has an internal, dedicated, formatter. More...
 
void ablastr::utils::TextMsg::Assert (const char *ex, const char *file, const int line, const std::string &msg)
 

Macro Definition Documentation

◆ ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE

#define ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE (   EX,
  MSG 
)    (EX)?((void)0) : ablastr::utils::TextMsg::Assert( # EX , __FILE__, __LINE__ , MSG)