TwiceAsNice  2019-02-18
Macros | Functions
fitsconv.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fitscat_defs.h"
#include "fitscat.h"
Include dependency graph for fitsconv.c:

Macros

#define OUTCONV(x, y)
 

Functions

tabstructasc2bin_tab (catstruct *catin, char *tabinname, catstruct *catout, char *taboutname)
 
void ttypeconv (void *ptrin, void *ptrout, t_type ttypein, t_type ttypeout)
 

Macro Definition Documentation

◆ OUTCONV

#define OUTCONV (   x,
 
)
Value:
switch(y) \
{ \
case T_BYTE: \
case T_STRING: \
*((char *)ptrout) = (char)x; \
break; \
case T_SHORT: \
*((short *)ptrout) = (short)x; \
break; \
case T_LONG: \
*((int *)ptrout) = (int)x; \
break; \
case T_FLOAT: \
*((float *)ptrout) = (float)x; \
break; \
case T_DOUBLE: \
*((double *)ptrout) = (double)x; \
break; \
default: \
break; \
}
int
Definition: PupilGeneratorTest.py:380
Definition: fitscat.h:87
int y
Definition: lutinvert.py:13
Definition: fitscat.h:86
x
Definition: meteoRRD_updater.py:125
Definition: fitscat.h:86
Definition: fitscat.h:86
float
Definition: closeLoop.py:125
Definition: fitscat.h:87
Definition: fitscat.h:87

Function Documentation

◆ asc2bin_tab()

tabstruct* asc2bin_tab ( catstruct catin,
char *  tabinname,
catstruct catout,
char *  taboutname 
)

◆ ttypeconv()

void ttypeconv ( void *  ptrin,
void *  ptrout,
t_type  ttypein,
t_type  ttypeout 
)