MOONS Pipeline Reference Manual 0.13.1
Data Structures | Functions
FLX format

Data Structures

struct  moo_flx
 FLX format. More...
 

Functions

moo_flxmoo_flx_new (void)
 Create a new moo_flx

 
moo_flxmoo_flx_load (const cpl_frame *frame)
 Load a FLX frame and create a moo_flx.
 
cpl_table * moo_flx_get_obj (moo_flx *self, const char *objname)
 Find the TABLE for a given object name.
 
void moo_flx_delete (moo_flx *self)
 Delete a moo_flx.
 

Detailed Description

This module provides functions to create, use, and destroy a moo_flx

Functionality include:

Synopsis:
#include "moo_flx.h"

Function Documentation

◆ moo_flx_delete()

void moo_flx_delete ( moo_flx self)

Delete a moo_flx.

Parameters
selfmoo_flx to delete
Returns
void

If the moo_flx self is NULL, nothing is done and no error is set.

Definition at line 196 of file moo_flx.c.

◆ moo_flx_get_obj()

cpl_table * moo_flx_get_obj ( moo_flx self,
const char *  objname 
)

Find the TABLE for a given object name.

Parameters
selfthe FLX object
objnamethe searched object name
Returns
the object table or NULL

Possible cpl_error_code set in this function:

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL

Definition at line 165 of file moo_flx.c.

◆ moo_flx_load()

moo_flx * moo_flx_load ( const cpl_frame *  frame)

Load a FLX frame and create a moo_flx.

Returns
1 newly allocated moo_flx or NULL in case of an error

The returned object must be deallocated using moo_flx_delete().
Possible cpl_error_code set in this function:

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL

Definition at line 84 of file moo_flx.c.

References moo_flx_new().

◆ moo_flx_new()

moo_flx * moo_flx_new ( void  )

Create a new moo_flx

Returns
1 newly allocated moo_flx or NULL in case of an error

The returned object must be deallocated using moo_flx_delete().

Definition at line 67 of file moo_flx.c.

Referenced by moo_flx_load().