/usr/include/cpl_io.h is in libcpl-dev 6.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | /* $Id: cpl_io.h,v 1.21 2013-02-21 17:14:53 cgarcia Exp $
*
* This file is part of the ESO Common Pipeline Library
* Copyright (C) 2001-2008 European Southern Observatory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* $Author: cgarcia $
* $Date: 2013-02-21 17:14:53 $
* $Revision: 1.21 $
* $Name: not supported by cvs2svn $
*/
#ifndef CPL_IO_H
#define CPL_IO_H
/*-----------------------------------------------------------------------------
Includes
-----------------------------------------------------------------------------*/
#include <cpl_macros.h>
CPL_BEGIN_DECLS
/*----------------------------------------------------------------------------*/
/**
* @defgroup cpl_io I/O
*
* This module provides definitions related to I/O. The actual I/O functions
* are defined in the respective CPL modules.
*
* @par Synopsis:
* @code
* #include "cpl_io.h"
* @endcode
*/
/*----------------------------------------------------------------------------*/
/**@{*/
/*-----------------------------------------------------------------------------
Defines
-----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/**
*
* @brief These are the file I/O modes.
*
* For the compression modes,
* see http://heasarc.nasa.gov/docs/software/fitsio/compression.html
*/
/*----------------------------------------------------------------------------*/
enum _cpl_io_type_ {
/*
* More modes may be added in the future. To support future combination of
* different modes (using bit-wise or) no mode has the value 1, since this
* makes the (mis)use of logical or detectable.
*/
/** @hideinitializer */
CPL_IO_CREATE = ((unsigned)1 << 1),
/**< Overwrite the file, if it already exists. */
/** @hideinitializer */
CPL_IO_EXTEND = ((unsigned)1 << 2),
/**< Append a new extension to the file. */
/** @hideinitializer */
CPL_IO_APPEND = ((unsigned)1 << 3),
/**< Append to the last data unit of the file. */
/** @hideinitializer */
CPL_IO_COMPRESS_GZIP = ((unsigned)1 << 4),
/**< Use FITS tiled-image compression with GZIP algorithm. */
/** @hideinitializer */
CPL_IO_COMPRESS_RICE = ((unsigned)1 << 5),
/**< Use FITS tiled-image compression with RICE algorithm. */
/** @hideinitializer */
CPL_IO_COMPRESS_HCOMPRESS = ((unsigned)1 << 6),
/**< Use FITS tiled-image compression with HCOMPRESS algorithm. */
/** @hideinitializer */
CPL_IO_COMPRESS_PLIO = ((unsigned)1 << 7),
/**< Use FITS tiled-image compression with PLIO algorithm. */
/** @hideinitializer */
CPL_IO_MAX = ((unsigned)1 << 8),
/**< Reserved for internal CPL usage. */
/** @hideinitializer */
CPL_IO_DEFAULT = ((unsigned)CPL_IO_CREATE)
/**< Deprecated, kept only for backwards compatibility */
};
/**
* @brief
* The file I/O modes.
*/
typedef enum _cpl_io_type_ cpl_io_type;
/**
@deprecated Use CPL_TYPE_UCHAR
*/
#define CPL_BPP_8_UNSIGNED CPL_TYPE_UCHAR
/**
@deprecated Use CPL_TYPE_SHORT
*/
#define CPL_BPP_16_SIGNED CPL_TYPE_SHORT
/**
@deprecated Use CPL_TYPE_USHORT
*/
#define CPL_BPP_16_UNSIGNED CPL_TYPE_USHORT
/**
@deprecated Use CPL_TYPE_INT
*/
#define CPL_BPP_32_SIGNED CPL_TYPE_INT
/**
@deprecated Use CPL_TYPE_FLOAT
*/
#define CPL_BPP_IEEE_FLOAT CPL_TYPE_FLOAT
/**
@deprecated Use CPL_TYPE_DOUBLE
*/
#define CPL_BPP_IEEE_DOUBLE CPL_TYPE_DOUBLE
/**
@deprecated Use cpl_type
*/
#define cpl_type_bpp cpl_type
/**@}*/
CPL_END_DECLS
#endif /* CPL_IO_H */
|