Flow123d  master-8d5574fc2
Classes | Macros | Typedefs | Enumerations | Functions | Variables
system.hh File Reference


More...

#include <mpi.h>
#include "system/global_defs.h"
#include "system/exc_common.hh"
#include <stdio.h>
#include <string>
#include "system/exceptions.hh"
#include "system/fmt/posix.h"

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
 

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

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
 

Detailed Description


 * 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.

Macro Definition Documentation

◆ _BSD_SOURCE

#define _BSD_SOURCE

Definition at line 36 of file system.hh.

◆ DIR_DELIMITER

#define DIR_DELIMITER   '/'

Definition at line 50 of file system.hh.

◆ OPERATOR_NEW_THROW_EXCEPTION

#define OPERATOR_NEW_THROW_EXCEPTION

Definition at line 54 of file system.hh.

◆ strcmpi

#define strcmpi   strcasecmp

Definition at line 49 of file system.hh.

Typedef Documentation

◆ MessageType

typedef enum MessageType MessageType

Identifiers for various output messages.

◆ SystemInfo

typedef struct SystemInfo SystemInfo

System structure for various global variables.

Enumeration Type Documentation

◆ MessageType

Identifiers for various output messages.

Enumerator
Msg 
MsgDbg 
MsgLog 
MsgVerb 
Warn 
UsrErr 
Err 
PrgErr 

Definition at line 64 of file system.hh.

Function Documentation

◆ chkerr()

void chkerr ( unsigned int  ierr)
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.

Definition at line 142 of file system.hh.

◆ chkerr_assert()

void chkerr_assert ( unsigned int  ierr)
inline

Wrapper to check return codes of C functions. In particular PETSC calls. This version do the check just as an debugging assert. So the code is empty in release version.

Definition at line 153 of file system.hh.

Here is the caller graph for this function:

Variable Documentation

◆ sys_info

SystemInfo sys_info

Definition at line 41 of file system.cc.