#include <stdio.h>
#include <glib.h>
#include "ObitErr.h"
#include "ObitInfoElem.h"
Go to the source code of this file.
Classes | |
| struct | ObitInfoList |
| ObitInfoList Class structure. More... | |
Functions | |
| ObitInfoList * | newObitInfoList (void) |
| Public: constructor. | |
| ObitInfoList * | freeObitInfoList (ObitInfoList *in) |
| Public: destructor. | |
| ObitInfoList * | ObitInfoListCopy (ObitInfoList *in) |
| Public: Copy constructor. | |
| ObitInfoList * | ObitInfoListRef (ObitInfoList *in) |
| Public: Reference object pointer. | |
| ObitInfoList * | ObitInfoListUnref (ObitInfoList *in) |
| Public: Unreference object pointer. | |
| ObitInfoList * | ObitInfoListCopyData (ObitInfoList *in, ObitInfoList *out) |
| Public: Copy entries from one list to another. | |
| void | ObitInfoListCopyList (ObitInfoList *in, ObitInfoList *out, gchar **list) |
| Public: Copy entries from one list to another controled by a list . | |
| void | ObitInfoListPut (ObitInfoList *in, gchar *name, ObitInfoType type, gint32 *dim, gconstpointer data, ObitErr *err) |
| Public: Store item to InfoList. | |
| void | ObitInfoListAlwaysPut (ObitInfoList *in, gchar *name, ObitInfoType type, gint32 *dim, gconstpointer data) |
| Public: Store item to InfoList, redefine item if necessary. | |
| gboolean | ObitInfoListInfo (ObitInfoList *in, gchar *name, ObitInfoType *type, gint32 *dim, ObitErr *err) |
| Public: Get info about item from InfoList by name. | |
| gboolean | ObitInfoListGet (ObitInfoList *in, gchar *name, ObitInfoType *type, gint32 *dim, gpointer data, ObitErr *err) |
| Public: Retrieve item from InfoList by name. | |
| gboolean | ObitInfoListGetP (ObitInfoList *in, gchar *name, ObitInfoType *type, gint32 *dim, gpointer *data) |
| Public: Return pointers to an item in InfoList by name. | |
| gboolean | ObitInfoListGetTest (ObitInfoList *in, gchar *name, ObitInfoType *type, gint32 *dim, gpointer data) |
| Public: Test retrieve of an item from InfoList. | |
| gboolean | ObitInfoListGetNumber (ObitInfoList *in, gint number, gchar **name, ObitInfoType *type, gint32 *dim, gpointer data, ObitErr *err) |
| Public: Retrieve item from InfoList by number. | |
| gboolean | ObitInfoListGetNumberP (ObitInfoList *in, gint number, gchar **name, ObitInfoType *type, gint32 *dim, gpointer *data) |
| Public: Return pointers to an item in InfoList by number. | |
| void | ObitInfoListRemove (ObitInfoList *in, gchar *name) |
| Public: Remove item from list. | |
| void | ObitInfoListResize (ObitInfoList *in, gchar *name, ObitInfoType type, gint32 *dim) |
| Public: Change dimension or type of an item. | |
| void | ObitInfoListPrint (ObitInfoList *in, FILE *file) |
| Public: Print contents to file (e.g. | |
| gboolean | ObitInfoListIsA (ObitInfoList *in) |
| Public: Returns true if input is a ObitInfoList*. | |
This facility allows storing arrays of values of the same (native) data type and retrieving them by name or order number in the list. Implementation uses the glib GSList class.
This class provides a linked list of labeled arrays of data of a given type (ObitInfoElem). The type codes are defined as enum obitInfoType. This facility is used for passing information and control parameters.
Strings are always special. When a string array is passed, is should be dimensioned similar to the dim array, i.e. if dim=[10,1,1,1,1] the data should be passed as a gchar*, if dim=[10,4,1,1,1] the a gchar**. String arrays ar always returned is one block with no NULL, and in column major order. Strings arrays of up to 3-D (gchar***) can be handled.
|
|
Public: destructor.
|
|
|
Public: constructor.
|
|
||||||||||||||||||||||||
|
Public: Store item to InfoList, redefine item if necessary. If the requested keyword (name) does not exist then one is created with the type, and dimension specified.
|
|
|
Public: Copy constructor.
|
|
||||||||||||
|
Public: Copy entries from one list to another.
|
|
||||||||||||||||
|
Public: Copy entries from one list to another controled by a list .
|
|
||||||||||||||||||||||||||||
|
Public: Retrieve item from InfoList by name. NOTE: String arrays are not returned in the form they are written, they are all in one large, rectangular gchar array.
|
|
||||||||||||||||||||||||||||||||
|
Public: Retrieve item from InfoList by number.
|
|
||||||||||||||||||||||||||||
|
Public: Return pointers to an item in InfoList by number.
|
|
||||||||||||||||||||||||
|
Public: Return pointers to an item in InfoList by name.
|
|
||||||||||||||||||||||||
|
Public: Test retrieve of an item from InfoList.
|
|
||||||||||||||||||||||||
|
Public: Get info about item from InfoList by name.
|
|
|
Public: Returns true if input is a ObitInfoList*.
|
|
||||||||||||
|
Public: Print contents to file (e.g.
|
|
||||||||||||||||||||||||||||
|
Public: Store item to InfoList. If the requested keyword (name) does not exist then one is created with the type, and dimension specified. If a previous entry exists, then the type and dimensionality provided must match.
|
|
|
Public: Reference object pointer. This function should always be used to copy pointers as this will ensure a proper reference count.
|
|
||||||||||||
|
Public: Remove item from list. Item is destroyed; does nothing if item not found.
|
|
||||||||||||||||||||
|
Public: Change dimension or type of an item. Create an entry in list if it doesn't previously exist, any existing data will be lost.
|
|
|
Public: Unreference object pointer.
|
1.3.9.1