Open source Very Long Baseline Interferometry
OpenVLBI
Macros | Functions

Macros

#define Min(a, b)
 if min() is not present you can use this one
 
#define Max(a, b)
 if max() is not present you can use this one
 
#define Log(a, b)   ( log(a) / log(b) )
 Logarithm of a with arbitrary base b.
 
#define DSP_ALIGN_TRANSLATED   1
 The stream is translated by the reference.
 
#define DSP_ALIGN_SCALED   2
 The stream is scaled by the reference.
 
#define DSP_ALIGN_ROTATED   4
 The stream is rotated by the reference.
 
#define DSP_ALIGN_NO_MATCH   8
 No matches were found during comparison.
 

Functions

DLL_EXPORT unsigned long int dsp_max_threads (unsigned long value)
 get/set the maximum number of threads allowed More...
 
DLL_EXPORT void dsp_set_debug_level (int value)
 set the debug level More...
 
DLL_EXPORT int dsp_get_debug_level ()
 get the debug level More...
 
DLL_EXPORT void dsp_set_app_name (char *name)
 set the application name More...
 
DLL_EXPORT char * dsp_get_app_name ()
 get the application name More...
 
DLL_EXPORT void dsp_set_stdout (FILE *f)
 set the output log streeam More...
 
DLL_EXPORT void dsp_set_stderr (FILE *f)
 set the error log streeam More...
 
DLL_EXPORT void dsp_print (int x, char *str)
 log a message to the error or output streams More...
 

Detailed Description

Function Documentation

◆ dsp_get_app_name()

DLL_EXPORT char* dsp_get_app_name ( )
Returns
The current application name printed on logs

◆ dsp_get_debug_level()

DLL_EXPORT int dsp_get_debug_level ( )
Returns
The current debug level

◆ dsp_max_threads()

DLL_EXPORT unsigned long int dsp_max_threads ( unsigned long  value)
Parameters
valueif greater than 1, set a maximum number of threads allowed
Returns
The current or new number of threads allowed during runtime

◆ dsp_print()

DLL_EXPORT void dsp_print ( int  x,
char *  str 
)
Parameters
xThe log level
strThe string to print

◆ dsp_set_app_name()

DLL_EXPORT void dsp_set_app_name ( char *  name)
Parameters
namethe application name to be printed on logs

◆ dsp_set_debug_level()

DLL_EXPORT void dsp_set_debug_level ( int  value)
Parameters
valuethe debug level

◆ dsp_set_stderr()

DLL_EXPORT void dsp_set_stderr ( FILE *  f)
Parameters
fThe FILE stream pointer to set as standard error

◆ dsp_set_stdout()

DLL_EXPORT void dsp_set_stdout ( FILE *  f)
Parameters
fThe FILE stream pointer to set as standard output