EleFits  5.0.0
A modern C++ API on top of CFITSIO
Classes | Functions
Euclid::Fits::Test Namespace Reference

Detailed Description

Test-related classes and functions.

Classes

class  NewMefFile
 MefFile with random name and create-only policy. More...
 
class  NewSifFile
 SifFile with random name and create-only policy. More...
 
struct  RandomHeader
 A random set of Records. More...
 
class  RandomRaster
 A random Raster of given type and shape. More...
 
class  RandomScalarColumn
 A random scalar Column of given type. More...
 
struct  RandomTable
 A set of random columns which cover the whole set of supported types. More...
 
class  RandomVectorColumn
 A small vector column of given type. More...
 
class  SmallRaster
 A 2D image Raster of floats. More...
 
class  SmallTable
 A small set of columns with various types. More...
 
class  TemporaryMefFile
 Temporary MefFile with random name. More...
 
class  TemporarySifFile
 Temporary SifFile with random name. More...
 
struct  TestBintable
 Temporary MEF file with one binary table extension. More...
 

Functions

std::string temporaryFilename ()
 Valid name for temporary files.
 
template<typename TRaster , typename URaster >
bool rasterApprox (const TRaster &test, const URaster &ref, double tol=0.01)
 Check whether a test raster is approximately equal to a reference raster. More...
 
template<typename T >
static Record< T > generateRandomRecord (const std::string &typeName)
 Generate a random record. More...
 
template<typename T >
static Record< T > generateRandomRecord (const std::string &k, const std::string &u, const std::string &c)
 Generate a random record.
 
template<typename T >
almostMin ()
 Value very close to the min of the type.
 
template<typename T >
almostMax ()
 Value very close to the max of the type.
 
template<typename T >
halfMin ()
 Half the min of the type.
 
template<typename T >
halfMax ()
 Half the max of the type.
 
template<typename T >
generateRandomValue (T min=halfMin< T >(), T max=halfMax< T >())
 Generate a random value of given type.
 
template<typename T >
std::vector< T > generateRandomVector (long size, T min=halfMin< T >(), T max=halfMax< T >())
 Generate a random vector of given type and size.
 
template<typename T >
bool approx (T test, T ref, double tol=0.01)
 Check whether a test value is approximately equal to a reference value. More...