Debian Codegraph @

cextern/healpix/src/cxx/cxxsupport/announce.h

raw
1 /*
2 * This file is part of libcxxsupport.
3 *
4 * libcxxsupport is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * libcxxsupport is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with libcxxsupport; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 /*
20 * libcxxsupport is being developed at the Max-Planck-Institut fuer Astrophysik
21 * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
22 * (DLR).
23 */
24
25 /*! \file announce.h
26 * Functions for printing information at startup.
27 *
28 * Copyright (C) 2002-2011 Max-Planck-Society
29 * \author Martin Reinecke
30 */
31
32 #ifndef PLANCK_ANNOUNCE_H
33 #define PLANCK_ANNOUNCE_H
34
35 #include <string>
36
37 /*! Prints a banner containing \a name, as well as some information about the
38 source code and the parallelisation techniques enabled. */
39 void announce (const std::string &name);
40
41 /*! Prints a banner containing \a name and checks if \a argc_valid is true.
42 If not, the string \a usage is printed and the program is terminated. */
43 void module_startup (const std::string &name, bool argc_valid,
44 const std::string &usage, bool verbose=true);
45
46 /*! Prints a banner containing \a name and checks if \a argc==argc_expected.
47 If not, a usage description is given and the program is terminated. */
48 void module_startup (const std::string &name, int argc, const char **argv,
49 int argc_expected, const std::string &argv_expected, bool verbose=true);
50
51 /*! Prints a banner containing \a name and checks if \a argc>=2.
52 If not, a usage description is given and the program is terminated. */
53 void module_startup (const std::string &name, int argc, const char **argv,
54 bool verbose=true);
55
56 #endif