BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
banner.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_BANNER_HPP
13#define BELFEM_BANNER_HPP
14
15#include <string>
16
17namespace belfem
18{
19 const std::string gLongName = "BELFEM -- The Berkeley Lab Finite Element Framework";
20 const std::string gURL = "http://belfem.lbl.gov";
21
22//------------------------------------------------------------------------------
23
24 std::string
25 exec( const std::string & aCommand );
26
27//------------------------------------------------------------------------------
28
32 std::string
33 uname();
34
35//------------------------------------------------------------------------------
36
40 std::string
41 cpu_info();
42
43//------------------------------------------------------------------------------
44
49 std::string
50 version();
51
52//------------------------------------------------------------------------------
53
59 bool
61
62//------------------------------------------------------------------------------
63
68 std::string
70
71//------------------------------------------------------------------------------
72
76 std::string
78
79//------------------------------------------------------------------------------
80
84 std::string
85 git_branch();
86
87//------------------------------------------------------------------------------
88
92 bool
94
95//------------------------------------------------------------------------------
96
100 void
101 print_banner( const std::string aExecName = "" );
102
103//------------------------------------------------------------------------------
104
105 namespace banners
106 {
107 bool
109
110 bool
111 print_easter();
112
113 bool
115
116 bool
117 print_usa();
118
119 bool
120 print_canada();
121
122 bool
124
125 bool
127 }
128
129//------------------------------------------------------------------------------
130}
131#endif //BELFEM_BANNER_HPP
Definition banner.hpp:106
bool print_canada()
Definition banner.cpp:641
bool print_default()
Definition banner.cpp:569
bool print_easter()
Definition banner.cpp:586
bool print_christmas()
Definition banner.cpp:677
bool print_thanksgiving()
Definition banner.cpp:658
bool print_stpatrick()
Definition banner.cpp:604
bool print_usa()
Definition banner.cpp:620
USER GUIDES:
Definition cl_Capacitor.cpp:16
std::string uname()
returns the Unix version ( Linux or Darwin )
Definition banner.cpp:81
std::string git_commit_hash()
returns the full git commit hash of the build, or "unknown" if built outside a git repository (e....
Definition banner.cpp:173
std::string cpu_info()
grabs the cpu info for the banner
Definition banner.cpp:89
std::string git_commit_hash_short()
returns the abbreviated (short) git commit hash of the build
Definition banner.cpp:181
bool git_is_dirty()
true if the working tree had uncommitted changes at build time
Definition banner.cpp:197
const std::string gURL
Definition banner.hpp:20
bool is_built_from_git()
true if the build was produced from a git checkout (i.e.
Definition banner.cpp:165
std::string git_branch()
returns the git branch name at build time, or "unknown"
Definition banner.cpp:189
const std::string gLongName
Definition banner.hpp:19
void print_banner(const std::string aExecName)
prints the banner
Definition banner.cpp:213
std::string version()
returns the BELFEM semantic version as "major.minor.patch" (e.g.
Definition banner.cpp:157
std::string exec(const std::string &aCommand)
Definition banner.cpp:38