Xmipp  v3.23.11-Nereus
python_filename.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: J.M. De la Rosa Trevin (jmdelarosa@cnb.csic.es)
4  * Roberto Marabini (roberto@cnb.csic.es)
5  *
6  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21  * 02111-1307 USA
22  *
23  * All comments concerning this program package may be sent to the
24  * e-mail address 'xmipp@cnb.csic.es'
25  ***************************************************************************/
26 
27 #ifndef _PYTHON_FILENAME_H
28 #define _PYTHON_FILENAME_H
29 
30 #include <Python.h>
31 
32 class FileName;
33 extern PyObject * PyXmippError;
34 
35 /***************************************************************/
36 /* FileName */
37 /**************************************************************/
38 
39 #define FileName_Check(v) (((v)->ob_type == &FileNameType))
40 #define FileName_Value(v) ((*((FileNameObject*)(v))->filename))
41 
42 /*FileName Object*/
43 typedef struct
44 {
45  PyObject_HEAD
47 }
49 
50 /* Destructor */
52 
53 /* Constructor */
54 PyObject *
55 FileName_new(PyTypeObject *type, PyObject *args, PyObject *kwargs);
56 
57 /* String representation */
58 PyObject *
59 FileName_repr(PyObject * obj);
60 
61 /* compose */
62 PyObject *
63 FileName_compose(PyObject *obj, PyObject *args, PyObject *kwargs);
64 
65 /* composeBlock */
66 PyObject *
67 FileName_composeBlock(PyObject *obj, PyObject *args, PyObject *kwargs);
68 
69 /* exists */
70 PyObject *
71 FileName_exists(PyObject *obj, PyObject *args, PyObject *kwargs);
72 
73 /* isInStack */
74 PyObject *
75 FileName_isInStack(PyObject *obj, PyObject *args, PyObject *kwargs);
76 
77 /* isMetadata */
78 PyObject *
79 FileName_isMetaData(PyObject *obj, PyObject *args, PyObject *kwargs);
80 
81 /* isImage */
82 PyObject *
83 FileName_isImage(PyObject *obj, PyObject *args, PyObject *kwargs);
84 
85 /* isStar1 */
86 PyObject *
87 FileName_isStar1(PyObject *obj, PyObject *args, PyObject *kwargs);
88 
89 PyObject *
90 FileName_getExtension(PyObject *obj, PyObject *args, PyObject *kwargs);
91 
92 PyObject *
93 FileName_getNumber(PyObject *obj, PyObject *args, PyObject *kwargs);
94 
95 PyObject *
96 FileName_getBaseName(PyObject *obj, PyObject *args, PyObject *kwargs);
97 
98 PyObject *
99 FileName_decompose(PyObject *obj, PyObject *args, PyObject *kwargs);
100 
101 PyObject *
102 FileName_withoutExtension(PyObject *obj, PyObject *args, PyObject *kwargs);
103 
104 PyObject *
105 FileName_removeBlockName(PyObject *obj, PyObject *args, PyObject *kwargs);
106 
107 extern PyMethodDef FileName_methods[];
108 extern PyTypeObject FileNameType;
109 
110 #endif
PyObject * FileName_decompose(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_isMetaData(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_getExtension(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_getNumber(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_repr(PyObject *obj)
void FileName_dealloc(FileNameObject *self)
PyObject * FileName_isStar1(PyObject *obj, PyObject *args, PyObject *kwargs)
viol type
PyObject * FileName_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
PyObject * FileName_getBaseName(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_exists(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_withoutExtension(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * PyXmippError
Definition: xmippmodule.cpp:47
PyObject * FileName_isInStack(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_compose(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_composeBlock(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject_HEAD FileName * filename
void(* obj)()
PyObject * FileName_isImage(PyObject *obj, PyObject *args, PyObject *kwargs)
PyObject * FileName_removeBlockName(PyObject *obj, PyObject *args, PyObject *kwargs)
PyTypeObject FileNameType
PyMethodDef FileName_methods[]