WarpX
Namespaces | Classes | Functions
ablastr::utils Namespace Reference

Namespaces

 communication
 
 msg_logger
 
 serialization
 
 TextMsg
 
 timer
 

Classes

class  SignalHandling
 Signal handling. More...
 

Functions

std::vector< std::string > 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...
 
void write_used_inputs_file (std::string const &filename)
 

Function Documentation

◆ automatic_text_wrap()

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).

Parameters
[in]textthe string containing the text to be wrapped
[in]max_line_lengththe maximum line length
Returns
an std::vector containing the lines of the wrapped text

◆ write_used_inputs_file()

void ablastr::utils::write_used_inputs_file ( std::string const &  filename)

Write a file that record all inputs: inputs file + command line options

This uses the same syntax as amrex::ParmParse inputs files. Only the AMReX IOProcessor writes.

Parameters
filenamethe name of the text file to write