HL-HDF
|
Go to the source code of this file.
Functions | |
int | getFloatFromDictionary (char *name, float *val, PyObject *dict) |
Retrives a float from a dictionary, python equivalent would be val = dict[name]. | |
int | getDoubleFromDictionary (char *name, double *val, PyObject *dict) |
Retrives a double from a dictionary, python equivalent would be val = dict[name]. | |
int | getIntegerFromDictionary (char *name, int *val, PyObject *dict) |
Retrives a integer from a dictionary, python equivalent would be val = dict[name]. | |
int | getUnsignedLongFromDictionary (char *name, unsigned long *val, PyObject *dict) |
Retrives a unsigned long from a dictionary, python equivalent would be val = dict[name]. | |
int | getLongFromDictionary (char *name, long *val, PyObject *dict) |
Retrives a long from a dictionary, python equivalent would be val = dict[name]. | |
int | getFloatFromObject (char *name, float *val, PyObject *dict) |
Retrives a float from an object, python equivalent would be val = dict.name. | |
int | getDoubleFromObject (char *name, double *val, PyObject *dict) |
Retrives a double from an object, python equivalent would be val = dict.name. | |
int | getIntegerFromObject (char *name, int *val, PyObject *dict) |
Retrives a integer from an object, python equivalent would be val = dict.name. | |
int | getLongFromObject (char *name, long *val, PyObject *dict) |
Retrives a long from an object, python equivalent would be val = dict.name. | |
int | getUnsignedLongFromObject (char *name, unsigned long *val, PyObject *dict) |
Retrives a unsigned long from an object, python equivalent would be val = dict.name. | |
int | getShortFromObject (char *name, short *val, PyObject *dict) |
Retrives a short from an object, python equivalent would be val = dict.name. | |
int | getByteFromObject (char *name, unsigned char *val, PyObject *dict) |
Retrives a unsigned char from an object, python equivalent would be val = dict.name. | |
char * | getStringFromObject (char *name, PyObject *dict) |
Retrives a string from a name in an object, python equivalent would be val = dict.name. | |
int | getIdxIntegerFromTuple (int idx, int *val, PyObject *tuple) |
Retrives a integer from a index in a tuple, python equivalent would be val = tuple[idx]. | |
int | getIdxDoubleFromTuple (int idx, double *val, PyObject *tuple) |
Retrives a double from a index in a tuple, python equivalent would be val = tuple[idx]. | |
char * | getStringFromDictionary (char *name, PyObject *dict) |
Retrives a string from a dictionary, python equivalent would be val = dict[name]. | |
int | setMappingInteger (PyObject *info, char *keyname, int in_value) |
Sets an integer in a dictionary, the python equivalent would be: info[keyname]=in_value. | |
int | setMappingDouble (PyObject *info, char *keyname, double in_value) |
Sets an double in a dictionary, the python equivalent would be: info[keyname]=in_value. | |
int | setMappingFloat (PyObject *info, char *keyname, float in_value) |
Sets an float in a dictionary, the python equivalent would be: info[keyname]=in_value. | |
int | setMappingString (PyObject *info, char *keyname, char *in_string) |
Sets an string in a dictionary, the python equivalent would be: info[keyname]=in_value. | |
int | setMappingString_Length (PyObject *info, char *keyname, char *in_string, int len) |
Sets a string in a dictionary, the python equivalent would be: info[keyname]=in_string[0:len]. | |
int | setObjectInteger (PyObject *info, char *keyname, int in_value) |
Sets an integer in a object, the python equivalent would be: info.keyname=in_value. | |
int | setObjectLong (PyObject *info, char *keyname, long in_value) |
Sets an long in a object, the python equivalent would be: info.keyname=in_value. | |
int | setObjectUnsignedLong (PyObject *info, char *keyname, unsigned long in_value) |
Sets an unsigned long in a object, the python equivalent would be: info.keyname=in_value. | |
int | setObjectDouble (PyObject *info, char *keyname, double in_value) |
Sets an double in a object, the python equivalent would be: info.keyname=in_value. | |
int | setObjectFloat (PyObject *info, char *keyname, float in_value) |
Sets an float in a object, the python equivalent would be: info.keyname=in_value. | |
int | setObjectString (PyObject *info, char *keyname, char *in_string) |
Sets an string in a object, the python equivalent would be: info.keyname=in_value. | |
int | setObjectString_Length (PyObject *info, char *keyname, char *in_string, int len) |
Sets a string in an object, the python equivalent would be: info.keyname=in_string[0:len]. | |
char * | translatePyFormatToHlHdf (char type) |
Translates a PyArray type to a hlhdf known format. | |
int | pyarraytypeFromHdfType (const char *format) |
Translates an hlhdf represented type into a PyArray known format. | |
PyArrayObject * | new1d_ArrayObject (int nl, const char *format) |
Creates a new 1-dimensional PyArrayObject. | |
PyArrayObject * | new2d_ArrayObject (int xsize, int ysize, const char *format) |
Creates a new 2-dimensional PyArrayObject. | |
Utility functions for working with python objects.
int getByteFromObject | ( | char * | name, |
unsigned char * | val, | ||
PyObject * | dict ) |
Retrives a unsigned char from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned unsigned char |
[in] | dict | The Python object |
int getDoubleFromDictionary | ( | char * | name, |
double * | val, | ||
PyObject * | dict ) |
Retrives a double from a dictionary, python equivalent would be val = dict[name].
[in] | name | The name of the attribute |
[out] | val | The assigned double |
[in] | dict | The Python dictionary |
int getDoubleFromObject | ( | char * | name, |
double * | val, | ||
PyObject * | dict ) |
Retrives a double from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned double |
[in] | dict | The Python object |
int getFloatFromDictionary | ( | char * | name, |
float * | val, | ||
PyObject * | dict ) |
Retrives a float from a dictionary, python equivalent would be val = dict[name].
[in] | name | The name of the attribute |
[out] | val | The assigned float |
[in] | dict | The Python dictionary |
int getFloatFromObject | ( | char * | name, |
float * | val, | ||
PyObject * | dict ) |
Retrives a float from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned float |
[in] | dict | The Python object |
int getIdxDoubleFromTuple | ( | int | idx, |
double * | val, | ||
PyObject * | tuple ) |
Retrives a double from a index in a tuple, python equivalent would be val = tuple[idx].
[in] | idx | The index of the value |
[out] | val | The assigned double |
[in] | tuple | The python tuple |
int getIdxIntegerFromTuple | ( | int | idx, |
int * | val, | ||
PyObject * | tuple ) |
Retrives a integer from a index in a tuple, python equivalent would be val = tuple[idx].
[in] | idx | The index of the value |
[out] | val | The assigned integer |
[in] | tuple | The python tuple |
int getIntegerFromDictionary | ( | char * | name, |
int * | val, | ||
PyObject * | dict ) |
Retrives a integer from a dictionary, python equivalent would be val = dict[name].
[in] | name | The name of the attribute |
[out] | val | The assigned integer |
[in] | dict | The Python dictionary |
int getIntegerFromObject | ( | char * | name, |
int * | val, | ||
PyObject * | dict ) |
Retrives a integer from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned integer |
[in] | dict | The Python object |
int getLongFromDictionary | ( | char * | name, |
long * | val, | ||
PyObject * | dict ) |
Retrives a long from a dictionary, python equivalent would be val = dict[name].
[in] | name | The name of the attribute |
[out] | val | The assigned long |
[in] | dict | The Python dictionary |
int getLongFromObject | ( | char * | name, |
long * | val, | ||
PyObject * | dict ) |
Retrives a long from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned long |
[in] | dict | The Python object |
int getShortFromObject | ( | char * | name, |
short * | val, | ||
PyObject * | dict ) |
Retrives a short from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned short |
[in] | dict | The Python object |
char * getStringFromDictionary | ( | char * | name, |
PyObject * | dict ) |
Retrives a string from a dictionary, python equivalent would be val = dict[name].
[in] | name | The name of the attribute |
[in] | dict | The Python dictionary |
char * getStringFromObject | ( | char * | name, |
PyObject * | dict ) |
Retrives a string from a name in an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[in] | dict | The Python dictionary |
int getUnsignedLongFromDictionary | ( | char * | name, |
unsigned long * | val, | ||
PyObject * | dict ) |
Retrives a unsigned long from a dictionary, python equivalent would be val = dict[name].
[in] | name | The name of the attribute |
[out] | val | The assigned unsigned long |
[in] | dict | The Python dictionary |
int getUnsignedLongFromObject | ( | char * | name, |
unsigned long * | val, | ||
PyObject * | dict ) |
Retrives a unsigned long from an object, python equivalent would be val = dict.name.
[in] | name | The name of the attribute |
[out] | val | The assigned unsigned long |
[in] | dict | The Python object |
PyArrayObject * new1d_ArrayObject | ( | int | nl, |
const char * | format ) |
Creates a new 1-dimensional PyArrayObject.
[in] | nl | The dimension |
[in] | format | The hlhdf representation of the array to be created. |
PyArrayObject * new2d_ArrayObject | ( | int | xsize, |
int | ysize, | ||
const char * | format ) |
Creates a new 2-dimensional PyArrayObject.
[in] | xsize | The x-dimension |
[in] | ysize | The y-dimension |
[in] | format | The hlhdf representation of the array to be created. |
int pyarraytypeFromHdfType | ( | const char * | format | ) |
Translates an hlhdf represented type into a PyArray known format.
[in] | format | The hlhdf representation |
int setMappingDouble | ( | PyObject * | info, |
char * | keyname, | ||
double | in_value ) |
Sets an double in a dictionary, the python equivalent would be: info[keyname]=in_value.
[in] | info | The Python dictionary |
[in] | keyname | The name of the attribute |
[in] | in_value | the double value |
int setMappingFloat | ( | PyObject * | info, |
char * | keyname, | ||
float | in_value ) |
Sets an float in a dictionary, the python equivalent would be: info[keyname]=in_value.
[in] | info | The Python dictionary |
[in] | keyname | The name of the attribute |
[in] | in_value | the float value |
int setMappingInteger | ( | PyObject * | info, |
char * | keyname, | ||
int | in_value ) |
Sets an integer in a dictionary, the python equivalent would be: info[keyname]=in_value.
[in] | info | The Python dictionary |
[in] | keyname | The name of the attribute |
[in] | in_value | the integer value |
int setMappingString | ( | PyObject * | info, |
char * | keyname, | ||
char * | in_string ) |
Sets an string in a dictionary, the python equivalent would be: info[keyname]=in_value.
[in] | info | The Python dictionary |
[in] | keyname | The name of the attribute |
[in] | in_string | the string value |
int setMappingString_Length | ( | PyObject * | info, |
char * | keyname, | ||
char * | in_string, | ||
int | len ) |
Sets a string in a dictionary, the python equivalent would be: info[keyname]=in_string[0:len].
[in] | info | The Python dictionary |
[in] | keyname | The name of the attribute |
[in] | in_string | the string |
[in] | len | The number of characters that should be taken from the string |
int setObjectDouble | ( | PyObject * | info, |
char * | keyname, | ||
double | in_value ) |
Sets an double in a object, the python equivalent would be: info.keyname=in_value.
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_value | the double value |
int setObjectFloat | ( | PyObject * | info, |
char * | keyname, | ||
float | in_value ) |
Sets an float in a object, the python equivalent would be: info.keyname=in_value.
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_value | the float value |
int setObjectInteger | ( | PyObject * | info, |
char * | keyname, | ||
int | in_value ) |
Sets an integer in a object, the python equivalent would be: info.keyname=in_value.
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_value | the integer value |
int setObjectLong | ( | PyObject * | info, |
char * | keyname, | ||
long | in_value ) |
Sets an long in a object, the python equivalent would be: info.keyname=in_value.
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_value | the long value |
int setObjectString | ( | PyObject * | info, |
char * | keyname, | ||
char * | in_string ) |
Sets an string in a object, the python equivalent would be: info.keyname=in_value.
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_string | the string value |
int setObjectString_Length | ( | PyObject * | info, |
char * | keyname, | ||
char * | in_string, | ||
int | len ) |
Sets a string in an object, the python equivalent would be: info.keyname=in_string[0:len].
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_string | the string |
[in] | len | The number of characters that should be taken from the string |
int setObjectUnsignedLong | ( | PyObject * | info, |
char * | keyname, | ||
unsigned long | in_value ) |
Sets an unsigned long in a object, the python equivalent would be: info.keyname=in_value.
[in] | info | The Python object |
[in] | keyname | The name of the attribute |
[in] | in_value | the unsigned long value |
char * translatePyFormatToHlHdf | ( | char | type | ) |
Translates a PyArray type to a hlhdf known format.
[in] | type | The PyArray type |