File: irplib_framelist.h

package info (click to toggle)
cpl-plugin-sinfo 2.5.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,512 kB
  • ctags: 3,661
  • sloc: ansic: 82,282; sh: 11,405; makefile: 711; python: 278
file content (107 lines) | stat: -rw-r--r-- 4,129 bytes parent folder | download | duplicates (39)
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
/* $Id: irplib_framelist.h,v 1.8 2008-11-20 10:24:47 llundin Exp $
 *
 * This file is part of the irplib package 
 * Copyright (C) 2002,2003 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  02111-1307  USA
 */

/*
 * $Author: llundin $
 * $Date: 2008-11-20 10:24:47 $
 * $Revision: 1.8 $
 * $Name: not supported by cvs2svn $
 */

#ifndef IRPLIB_FRAMELIST_H
#define IRPLIB_FRAMELIST_H

/*-----------------------------------------------------------------------------
                                   Includes
 -----------------------------------------------------------------------------*/

#include <cpl.h>

/*-----------------------------------------------------------------------------
                                   New type
 -----------------------------------------------------------------------------*/

typedef struct _irplib_framelist_ irplib_framelist;

/*-----------------------------------------------------------------------------
                                   Function prototypes
 -----------------------------------------------------------------------------*/

/* Constructors and destructor */

irplib_framelist * irplib_framelist_new(void);

void irplib_framelist_delete(irplib_framelist *);

irplib_framelist * irplib_framelist_cast(const cpl_frameset *);

irplib_framelist * irplib_framelist_extract(const irplib_framelist *,
                                            const char *);
irplib_framelist * irplib_framelist_extract_regexp(const irplib_framelist *,
                                                   const char *, cpl_boolean);

/* Accessors and element modifiers */

int irplib_framelist_get_size(const irplib_framelist *);

const cpl_frame * irplib_framelist_get_const(const irplib_framelist *, int);

cpl_frame * irplib_framelist_get(irplib_framelist *, int);

const cpl_propertylist * irplib_framelist_get_propertylist_const(
                                                       const irplib_framelist *,
                                                       int);

cpl_propertylist * irplib_framelist_get_propertylist(irplib_framelist *, int);

cpl_error_code irplib_framelist_set_propertylist(irplib_framelist *, int,
                                                 const cpl_propertylist *);

cpl_error_code irplib_framelist_load_propertylist(irplib_framelist *, int,
                                                  int, const char *,
                                                  cpl_boolean);

cpl_error_code irplib_framelist_load_propertylist_all(irplib_framelist *, int,
                                                      const char *,
                                                      cpl_boolean);

cpl_error_code irplib_framelist_set_tag_all(irplib_framelist *, const char *);


/* Inserting and removing elements */

cpl_error_code irplib_framelist_set(irplib_framelist *, cpl_frame *, int);

cpl_error_code irplib_framelist_erase(irplib_framelist *, int);

cpl_frame * irplib_framelist_unset(irplib_framelist *, int, cpl_propertylist **);

void irplib_framelist_empty(irplib_framelist *);

/* Others */
cpl_error_code irplib_framelist_contains(const irplib_framelist *, const char *,
                                         cpl_type, cpl_boolean, double);

cpl_imagelist * irplib_imagelist_load_framelist(const irplib_framelist *,
                                                cpl_type, int, int);

cpl_frameset * irplib_frameset_cast(const irplib_framelist *);

#endif