ug4
raster_impl.hpp File Reference
#include <limits>
#include <cstring>
#include <algorithm>
#include <fstream>
#include "common/error.h"
#include "common/util/file_util.h"
#include "common/util/string_util.h"
#include "raster_kernels.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Macros

#define LFA_CHECK_DIM(d, line)
 
#define LFA_ERR_WHERE   "Error in Raster::load_from_asc('" << filename << "'): "
 
#define STA_ERR_WHERE   "Error in Raster::save_to_asc('" << filename << "'): "
 

Macro Definition Documentation

◆ LFA_CHECK_DIM

#define LFA_CHECK_DIM (   d,
  line 
)
Value:
UG_COND_THROW(d >= TDIM, LFA_ERR_WHERE << "Bad dimension '" << d <<\
"' in line " << line << " of file " << filename << "," <<\
"while trying to read a " << TDIM << "d raster.");
#define UG_COND_THROW(cond, msg)
UG_COND_THROW(cond, msg) : performs a UG_THROW(msg) if cond == true.
Definition: error.h:61
#define LFA_ERR_WHERE

◆ LFA_ERR_WHERE

#define LFA_ERR_WHERE   "Error in Raster::load_from_asc('" << filename << "'): "

◆ STA_ERR_WHERE

#define STA_ERR_WHERE   "Error in Raster::save_to_asc('" << filename << "'): "