| ifw-daq
    2.1.0-pre1
    IFW Data Acquisition modules | 
 
 
 
Go to the documentation of this file.
    8 #include <gmock/gmock.h> 
    9 #include <gtest/gtest.h> 
   15 using namespace ::testing;
 
   23         return m_fits.GetFile();
 
   34     long naxes[2] = {128, 128};
 
   35     fits_create_img(GetFile(), SHORT_IMG, 2, naxes, &status);
 
   49         << PrintToString(kws);
 
   62         << PrintToString(kws);
 
   68     std::vector<LiteralKeyword> write;
 
   69     write.emplace_back(
"SIMPLE  =                T / Standard FITS");
 
   70     write.emplace_back(
"BITPIX  =                8 / # of bits per pix value");
 
   71     write.emplace_back(
"NAXIS   =                0 / # of axes in data array");
 
   82         << PrintToString(kws);
 
  
std::vector< LiteralKeyword > ReadKeywords(fitsfile *ptr, int hdu_num)
Read keywords from HDU identifed by absolute position hdu_num.
void WriteKeywords(fitsfile *ptr, int hdu_num, std::vector< LiteralKeyword > const &keywords, std::optional< ssize_t > *remaining_size)
Write keywords to HDU identified by number hdu_num.
void InitPrimaryHduEmpty(fitsfile *ptr)
Initializes an empty FITS file with an empty primary HDU (no keywords)
KeywordClass GetKeywordClass(std::string_view name)
Get keyword class.
TEST_F(TestDpmDaqController, StatusUpdateInNotScheduledSucceeds)
@ Commentary
A commentary keyword, which are keywords that do not fall into the previous categories.
KeywordClass
Fits keyword type.
Contains common matchers.
Contains functions and data structures related to cfitsio.
void InitPrimaryHduNoImage(fitsfile *ptr)
Initializes an empty FITS file with a primary HDU.
Represents the literal 80-character FITS keyword record.
fitsfile * GetFile() const noexcept