Documentation 6b54b78464
Loading...
Searching...
No Matches
printing_toolbox.hpp File Reference

Header file for the printing toolbox. More...

#include <iostream>
#include <iomanip>
#include <cstdint>
#include <vector>
#include <string>
#include <sstream>
#include <cmath>
#include <algorithm>
#include "../basic_types/datatype_structure.hpp"

Go to the source code of this file.

Classes

class  PrintingToolbox::CTablePrinter
 Class for writing output in a table. More...
 

Namespaces

namespace  PrintingToolbox
 

Functions

void PrintingToolbox::PrintScreenFixed (std::ostream &stream, su2double val, unsigned short field_width)
 
void PrintingToolbox::PrintScreenScientific (std::ostream &stream, su2double val, unsigned short field_width)
 
void PrintingToolbox::PrintScreenInteger (std::ostream &stream, unsigned long val, unsigned short field_width)
 
void PrintingToolbox::PrintScreenPercent (std::ostream &stream, su2double val, unsigned short field_width)
 
std::vector< std::string > PrintingToolbox::split (const std::string &s, char delimiter)
 
int PrintingToolbox::stoi (const std::string s)
 
su2double PrintingToolbox::stod (const std::string s)
 
std::string PrintingToolbox::to_string (const su2double number)
 
std::string & PrintingToolbox::rtrim (std::string &s, const char *t=ws)
 
std::string & PrintingToolbox::ltrim (std::string &s, const char *t=ws)
 
std::string & PrintingToolbox::trim (std::string &s, const char *t=ws)
 
void PrintingToolbox::StringToUpperCase (std::string &str)
 utility function for converting strings to uppercase
 
std::string PrintingToolbox::StringToUpperCase (const std::string &str)
 utility function for converting strings to uppercase
 
void PrintingToolbox::TrimExtension (const std::string &ext, std::string &name)
 Trim an extension from a name.
 

Detailed Description

Header file for the printing toolbox.

Author
T. Albring
Version
8.5.0 "Harrier"

SU2 Project Website: https://su2code.github.io

The SU2 Project is maintained by the SU2 Foundation (http://su2foundation.org)

Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)

SU2 is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

SU2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with SU2. If not, see http://www.gnu.org/licenses/.