Flow123d
release_3.0.0-1106-ga3b2e4c
|
Various system-wide functions. More...
#include <cstring>
#include <cstdarg>
#include <ctime>
#include <cstdlib>
#include <sys/stat.h>
#include <cerrno>
#include <sstream>
#include <fstream>
#include <string>
#include "mpi.h"
#include "system/system.hh"
#include "system/file_path.hh"
#include "system/sys_profiler.hh"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <boost/format.hpp>
Go to the source code of this file.
Classes | |
struct | MsgFmt |
INTERNAL DEFINITIONS FOR XPRINTF. More... | |
Functions | |
int | _xprintf (const char *const xprintf_file, const char *const xprintf_func, const int xprintf_line, MessageType type, const char *const fmt,...) |
Multi-purpose printing routine: messages, warnings, errors. More... | |
Variables | |
SystemInfo | sys_info |
#define | SCR_NONE 0 |
#define | SCR_STDOUT 1 |
#define | SCR_STDERR 2 |
#define | NUM_OF_FMTS 8 |
static struct MsgFmt | msg_fmt [] |
Various system-wide functions.
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
This program 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 General Public License for more details.
Definition in file system.cc.
#define NUM_OF_FMTS 8 |
int _xprintf | ( | const char *const | xprintf_file, |
const char *const | xprintf_func, | ||
const int | xprintf_line, | ||
MessageType | type, | ||
const char *const | fmt, | ||
... | |||
) |
Multi-purpose printing routine: messages, warnings, errors.
[in] | xprintf_file | current file |
[in] | xprintf_func | current function |
[in] | xprintf_line | current line number |
[in] | type | message type |
[in] | fmt | message format |
|
static |
SystemInfo sys_info |