Open Mode Constants
Syntax
CFitsFile::READMODE
CFitsFile::READWRITEMODE
Type
const static int
Required Headers
CFitsFile.h
Remarks
Integer class constants that correspond to the READ/WRITE modes for the cfitsio library.

NAME VALUE
READMODE READONLY (cfitsio)
READWRITEMODE READWRITE (cfitsio)
Example
        // This code demonstrates how to open a FITS file
        // for read/write mode.

        #include <iostream.h>
        #include "CFitsFile.h"

        using namespace std;
        using namespace arc;

        int main()
        {
            try {
                CFitsFile cFits( "Image.fit", CFitsFile::READWRITEMODE );

                // .... do something with file ....
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.