/usr/include/cpl_property.h is in libcpl-dev 5.3.1-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 | /* $Id: cpl_property.h,v 1.13 2010/12/22 11:32:12 llundin Exp $
*
* This file is part of the ESO Common Pipeline Library
* Copyright (C) 2001-2005 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: llundin $
* $Date: 2010/12/22 11:32:12 $
* $Revision: 1.13 $
* $Name: cpl-5_3_0-BRANCH $
*/
#ifndef CPL_PROPERTY_H
#define CPL_PROPERTY_H
#include <cpl_error.h>
#include <cpl_type.h>
CPL_BEGIN_DECLS
/**
* @ingroup cpl_property
*
* @brief
* The opaque property data type.
*/
typedef struct _cpl_property_ cpl_property;
/*
* Create, copy and destroy operations.
*/
cpl_property *cpl_property_new(const char *name,
cpl_type type) CPL_ATTR_ALLOC;
cpl_property *cpl_property_new_array(const char *name, cpl_type type,
int size) CPL_ATTR_ALLOC;
cpl_property *cpl_property_duplicate(const cpl_property *other) CPL_ATTR_ALLOC;
void cpl_property_delete(cpl_property *self);
/*
* Non modifying operations
*/
long cpl_property_get_size(const cpl_property *self);
cpl_type cpl_property_get_type(const cpl_property *self);
/*
* Assignment operations
*/
cpl_error_code cpl_property_set_name(cpl_property *self, const char *name);
cpl_error_code cpl_property_set_comment(cpl_property *self,
const char *comment);
cpl_error_code cpl_property_set_char(cpl_property *self, char value);
cpl_error_code cpl_property_set_bool(cpl_property *self, int value);
cpl_error_code cpl_property_set_int(cpl_property *self, int value);
cpl_error_code cpl_property_set_long(cpl_property *self, long value);
cpl_error_code cpl_property_set_float(cpl_property *self, float value);
cpl_error_code cpl_property_set_double(cpl_property *self, double value);
cpl_error_code cpl_property_set_string(cpl_property *self, const char *value);
#ifdef _Complex_I
cpl_error_code cpl_property_set_double_complex(cpl_property *self,
double complex value);
cpl_error_code cpl_property_set_float_complex(cpl_property *self,
float complex value);
#endif
/*
* Element access
*/
const char *cpl_property_get_name(const cpl_property *self);
const char *cpl_property_get_comment(const cpl_property *self);
char cpl_property_get_char(const cpl_property *self);
int cpl_property_get_bool(const cpl_property *self);
int cpl_property_get_int(const cpl_property *self);
long cpl_property_get_long(const cpl_property *self);
float cpl_property_get_float(const cpl_property *self);
double cpl_property_get_double(const cpl_property *self);
const char *cpl_property_get_string(const cpl_property *self);
#ifdef _Complex_I
float complex cpl_property_get_float_complex(const cpl_property *self);
double complex cpl_property_get_double_complex(const cpl_property *self);
#endif
CPL_END_DECLS
#endif /* CPL_PROPERTY_H */
|