Collaboration diagram for BasisCxxUtilities:Modules | |
| Command-line Parsing Library | |
| Command-line parsing library for C++. | |
| Testing Framework | |
| Testing framework for C++. | |
Files | |
| file | basis.h |
| BASIS utilities of BASIS project of BASIS package. | |
| file | utilities.cxx |
| Main module of project-independent BASIS utilities. | |
| file | utilities.h |
| Main module of project-independent BASIS utilities. | |
Namespaces | |
| basis | |
Macros | |
| #define | HAVE_LONG_LONG 1 |
| Whether the long long type is supported by the compiler. More... | |
| #define | HAVE_PTHREAD 1 |
| Whether the pthread library is available. More... | |
| #define | HAVE_SSTREAM 1 |
| Whether the ANSI string stream classes are available. More... | |
| #define | HAVE_STRSTREAM 0 |
| Whether the obsolete string stream classes are available. More... | |
| #define | HAVE_TR1_TUPLE 0 |
| Whether the tr1/tuple header file is available. More... | |
| #define | LINUX 0 |
| Whether the sources are compiled on a Linux system. More... | |
| #define | MACOS 0 |
| Whether the sources are compiled on a Mac OS system. More... | |
| #define | UNIX 1 |
| Whether the sources are compiled on a Unix-based system. More... | |
| #define | WINDOWS 0 |
| Whether the sources are compiled on a Windows system. More... | |
Functions | |
| int | basis::get_terminal_columns () |
| Get maximum number of columns of terminal window. More... | |
| int | basis::get_terminal_lines () |
| Get maximum number of lines of terminal window. More... | |
| void | basis::get_terminal_size (int &lines, int &columns) |
| Get size of terminal window. More... | |
| std::ostream & | basis::print_wrapped (std::ostream &os, const std::string &text, int width, int indent, int offset) |
| Print text, wrapped at a fixed maximum number of columns. More... | |
Variables | |
| cmake | PROJECT_NAMESPACE_CXX |
| CMake variable of C++ namespace of project. More... | |
| cmake HAVE_LONG_LONG 1 |
| cmake HAVE_PTHREAD 1 |
| cmake HAVE_SSTREAM 1 |
| #define HAVE_STRSTREAM 0 |
| cmake HAVE_TR1_TUPLE 0 |
| #define LINUX 0 |
| #define MACOS 0 |
| #define UNIX 1 |
| #define WINDOWS 0 |
| int basis::get_terminal_columns | ( | ) |
| int basis::get_terminal_lines | ( | ) |
| void basis::get_terminal_size | ( | int & | lines, |
| int & | columns | ||
| ) |
| ostream & basis::print_wrapped | ( | std::ostream & | os, |
| const std::string & | text, | ||
| int | width, | ||
| int | indent, | ||
| int | offset | ||
| ) |
Print text, wrapped at a fixed maximum number of columns.
This function is inspired by the TCLAP::StdOutput::spacePrint() method written by Michael E. Smoot.
| [out] | os | Output stream. |
| [in] | text | Text to be printed. |
| [in] | width | Maximum width of each line. Set to a value less or equal to disable automatic wrapping. |
| [in] | indent | Indent of text on each line. |
| [in] | offset | Additional indent of all lines except the first one. |
| cmake PROJECT_NAMESPACE_CXX |
CMake variable of C++ namespace of project.
The C++ namespace of a BASIS project is made up of the vendor name and the name of the package itself. Moreover, if the project is a module of another project, the name of the module may optionally be used as part of the namespace as well. Namespaces in C++ are usually in lowercase only.
Definition at line 87 of file ProjectSettings.cmake.