pyanatomist 6.0.0
setaobject.h
Go to the documentation of this file.
1
2/* This software and supporting documentation are distributed by
3 * Institut Federatif de Recherche 49
4 * CEA/NeuroSpin, Batiment 145,
5 * 91191 Gif-sur-Yvette cedex
6 * France
7 *
8 * This software is governed by the CeCILL license version 2 under
9 * French law and abiding by the rules of distribution of free software.
10 * You can use, modify and/or redistribute the software under the
11 * terms of the CeCILL license version 2 as circulated by CEA, CNRS
12 * and INRIA at the following URL "http://www.cecill.info".
13 *
14 * As a counterpart to the access to the source code and rights to copy,
15 * modify and redistribute granted by the license, users are provided only
16 * with a limited warranty and the software's author, the holder of the
17 * economic rights, and the successive licensors have only limited
18 * liability.
19 *
20 * In this respect, the user's attention is drawn to the risks associated
21 * with loading, using, modifying and/or developing or reproducing the
22 * software by the user in light of its specific status of free software,
23 * that may mean that it is complicated to manipulate, and that also
24 * therefore means that it is reserved for developers and experienced
25 * professionals having in-depth computer knowledge. Users are therefore
26 * encouraged to load and test the software's suitability as regards their
27 * requirements in conditions enabling the security of their systems and/or
28 * data to be ensured and, more generally, to use and operate it in the
29 * same conditions as regards security.
30 *
31 * The fact that you are presently reading this means that you have had
32 * knowledge of the CeCILL license version 2 and that you accept its terms.
33 */
34#ifndef PYANATOMIST_SETAOBJECT_H
35#define PYANATOMIST_SETAOBJECT_H
36
37#include <pyanatomist/aobject.h>
38
39
41{
42 return sipConvertFromType( a,
43 sipType_set_AObjectPtr,
44 0 );
45}
46
47
49{
50 int isErr = 0;
51 return sipConvertToType( o,
52 sipType_set_AObjectPtr,
53 0, 0, 0, &isErr );
54}
55
56
57inline int pyanatomistset_AObjectP_Check( PyObject* o )
58{
59 return sipCanConvertToType( o, sipType_set_AObjectPtr, 0 );
60}
61
62#endif
63
int pyanatomistset_AObjectP_Check(PyObject *o)
Definition setaobject.h:57
PyObject * pyanatomistConvertFrom_set_anatomist_AObjectP(void *a)
Definition setaobject.h:40
void * pyanatomistConvertTo_set_anatomist_AObjectP(PyObject *o)
Definition setaobject.h:48