LSST Applications g0afe43252f+b86e4b8053,g0e535e6de9+ad13c1b82d,g11f7dcd041+017865fdd3,g1ce3e0751c+f991eae79d,g25e82e299b+da9c58a417,g28da252d5a+9a4345bd89,g2bbee38e9b+b6588ad223,g2bc492864f+b6588ad223,g2cdde0e794+8523d0dbb4,g347aa1857d+b6588ad223,g35bb328faa+b86e4b8053,g3a166c0a6a+b6588ad223,g461a3dce89+b86e4b8053,g52b1c1532d+b86e4b8053,g7d11c3e888+3343bff751,g80478fca09+f22f659b46,g8543c18506+fadcf71ecf,g858d7b2824+c704b22fcc,g8cd86fa7b1+497903d09f,g965a9036f2+c704b22fcc,g979bb04a14+43c1c4070b,g9ddcbc5298+f24b38b85a,gae0086650b+b86e4b8053,gb781091699+0f9934ae6f,gbb886bcc26+486567bf06,gc28159a63d+b6588ad223,gc30aee3386+a2f0f6cab9,gc9f6898e11+66e322ebb3,gcaf7e4fdec+c704b22fcc,gcd45df26be+c704b22fcc,gcdd4ae20e8+02080e1d2d,gcf0d15dbbd+02080e1d2d,gdaeeff99f8+006e14e809,gdbce86181e+42405ade82,ge3d4d395c2+224150c836,ge79ae78c31+b6588ad223,gf048a9a2f4+69e41b07e6,gf0baf85859+b4cca3d10f,w.2024.30
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
Persistable.h File Reference
#include <climits>
#include "lsst/base.h"
#include "lsst/pex/exceptions.h"
#include "lsst/afw/fitsDefaults.h"

Go to the source code of this file.

Classes

class  lsst::afw::table::io::PersistenceError
 An exception thrown when problems occur during persistence. More...
 
class  lsst::afw::table::io::MalformedArchiveError
 An exception thrown when an InputArchive's contents do not make sense. More...
 
class  lsst::afw::table::io::Persistable
 A base class for objects that can be persisted via afw::table::io Archive classes. More...
 
class  lsst::afw::table::io::PersistableFacade< T >
 A CRTP facade class for subclasses of Persistable. More...
 
class  lsst::afw::table::io::PersistableFactory
 A base class for factory classes used to reconstruct objects from records. More...
 

Namespaces

namespace  lsst
 
namespace  lsst::afw
 
namespace  lsst::afw::fits
 
namespace  lsst::afw::table
 
namespace  lsst::afw::table::io
 

Macros

#define LSST_ARCHIVE_ASSERT(EXPR)
 An assertion macro used to validate the structure of an InputArchive.
 

Macro Definition Documentation

◆ LSST_ARCHIVE_ASSERT

#define LSST_ARCHIVE_ASSERT ( EXPR)
Value:
if (!(EXPR)) \
throw LSST_EXCEPT(lsst::afw::table::io::MalformedArchiveError, "Archive assertion failed: " #EXPR)
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48
An exception thrown when an InputArchive's contents do not make sense.
Definition Persistable.h:39

An assertion macro used to validate the structure of an InputArchive.

This assertion is not enabled/disabled by NDEBUG, and throws an exception rather than aborting, and should be reserved for errors that should only occur when an InputArchive is found to be in a state that could not have been produced by an OutputArchive.

Definition at line 48 of file Persistable.h.

48#define LSST_ARCHIVE_ASSERT(EXPR) \
49 if (!(EXPR)) \
50 throw LSST_EXCEPT(lsst::afw::table::io::MalformedArchiveError, "Archive assertion failed: " #EXPR)