MsPASS C++ API  2.4.1.dev4+g92330b7a
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
mspass::algorithms::deconvolution::ERR Class Reference

Base error container used by DPSS/LAPACK helper routines. More...

#include <dpss.h>

Inheritance diagram for mspass::algorithms::deconvolution::ERR:
Inheritance graph
[legend]

Public Member Functions

 ERR ()
 
 ERR (const char *msg)
 
void getmsg (char *errmsg)
 
const char * getmsg ()
 

Protected Attributes

char msg [30]
 

Detailed Description

Base error container used by DPSS/LAPACK helper routines.

This lightweight class stores a short message for numerical helper failures raised while computing discrete prolate spheroidal sequences.

Constructor & Destructor Documentation

◆ ERR() [1/2]

mspass::algorithms::deconvolution::ERR::ERR ( )
inline

Construct an empty error message.

15{};

◆ ERR() [2/2]

mspass::algorithms::deconvolution::ERR::ERR ( const char *  msg)

Construct from a null-terminated error message.

202{ strncpy(msg, errmsg, 30); }
char msg[30]
Definition dpss.h:25

References msg.

Member Function Documentation

◆ getmsg() [1/2]

const char * mspass::algorithms::deconvolution::ERR::getmsg ( )

Return the stored message.

204{ return msg; }

References msg.

◆ getmsg() [2/2]

void mspass::algorithms::deconvolution::ERR::getmsg ( char *  errmsg)

Copy the stored message into caller-provided storage.

203{ strncpy(errmsg, this->msg, 30); }

References msg.

Member Data Documentation

◆ msg

char mspass::algorithms::deconvolution::ERR::msg[30]
protected

Fixed-size message buffer used by the original DPSS implementation.


The documentation for this class was generated from the following files: