Flow123d
release_3.0.0-968-gc359144
|
#include <mpi.h>
#include "system/global_defs.h"
#include "system/exc_common.hh"
#include <stdio.h>
#include <boost/exception/detail/error_info_impl.hpp>
#include <boost/exception/info.hpp>
#include <string>
#include "system/exceptions.hh"
Go to the source code of this file.
Classes | |
struct | SystemInfo |
System structure for various global variables. More... | |
Macros | |
#define | _BSD_SOURCE |
#define | strcmpi strcasecmp |
#define | DIR_DELIMITER '/' |
#define | OPERATOR_NEW_THROW_EXCEPTION |
#define | xprintf(...) _xprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) |
Typedefs | |
typedef enum MessageType | MessageType |
Identifiers for various output messages. More... | |
typedef struct SystemInfo | SystemInfo |
System structure for various global variables. More... | |
Enumerations | |
enum | MessageType { Msg = 0, MsgDbg, MsgLog, MsgVerb, Warn, UsrErr, Err, PrgErr } |
Identifiers for various output messages. 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... | |
void | chkerr (unsigned int ierr) |
Replacement of new/delete operator in the spirit of xmalloc. More... | |
void | chkerr_assert (unsigned int ierr) |
Variables | |
SystemInfo | sys_info |
* 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.hh.
#define xprintf | ( | ... | ) | _xprintf(__FILE__, __func__, __LINE__, __VA_ARGS__) |
typedef enum MessageType MessageType |
Identifiers for various output messages.
typedef struct SystemInfo SystemInfo |
System structure for various global variables.
enum MessageType |
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 |
|
inline |
Replacement of new/delete operator in the spirit of xmalloc.
Up to my knowledge overloading of original new/delete is the only clean. Possibly disadvantage is that all 'new' calls in system and other templates become also overloaded.Operations on files and directories Wrapper to check return codes of C functions. In particular PETSC calls.
|
inline |
SystemInfo sys_info |