LSST Applications g0aad566f14+ff8335139e,g2079a07aa2+86d27d4dc4,g2305ad1205+f692bcb212,g2bbee38e9b+047b288a59,g337abbeb29+047b288a59,g33d1c0ed96+047b288a59,g3a166c0a6a+047b288a59,g3d1719c13e+ff8335139e,g487adcacf7+0ce5160e95,g4be5004598+ff8335139e,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+d1f8abcd0b,g63cd9335cc+585e252eca,g858d7b2824+ff8335139e,g88963caddf+5804a2ccce,g88c60e1ba4+f263127a16,g99cad8db69+5fb0aeae0c,g9ddcbc5298+9a081db1e4,ga1e77700b3+a912195c07,ga57fefb910+66aa5c8fea,gab192c5e6e+cead8cd1b9,gae0086650b+585e252eca,gb0e22166c9+60f28cb32d,gb1fda7adca+d2c2560e0a,gb3a676b8dc+b4feba26a1,gb4b16eec92+fe5f3eb638,gba4ed39666+c2a2e4ac27,gbb8dafda3b+d91932a454,gc120e1dc64+a1259a995c,gc28159a63d+047b288a59,gc3e9b769f7+c20394caa9,gcf0d15dbbd+66aa5c8fea,gdaeeff99f8+f9a426f77a,ge79ae78c31+047b288a59,w.2024.20
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)