Main Page | Class List | Directories | File List | Class Members | File Members

ObitTableUtil.h File Reference

ObitTable class utility routine definition. More...

#include "Obit.h"
#include "ObitErr.h"
#include "ObitTable.h"

Go to the source code of this file.

Functions

ObitIOCode ObitTableUtilSort (ObitTable *in, gchar *colName, gboolean desc, ObitErr *err)
 Public: Sort a table by one key.
ObitIOCode ObitTableUtilAbsSort (ObitTable *in, gchar *colName, gboolean desc, ObitErr *err)
 Public: Sort a table by abs value of one key.
ObitIOCode ObitTableUtilSort2f (ObitTable *in, gchar *colName1, gint cell1, gboolean desc1, gchar *colName2, gint cell2, gboolean desc2, ObitErr *err)
 Public: Sort a table by otwo numeric keys.


Detailed Description

ObitTable class utility routine definition.


Function Documentation

ObitIOCode ObitTableUtilAbsSort ObitTable in,
gchar *  colName,
gboolean  desc,
ObitErr err
 

Public: Sort a table by abs value of one key.

Parameters:
in Table to sort
colName Column label to sort by (for now first cell)
desc If true want descending sort, else ascent
err ObitErr error stack.
Returns:
I/O Code OBIT_IO_OK = OK.

ObitIOCode ObitTableUtilSort ObitTable in,
gchar *  colName,
gboolean  desc,
ObitErr err
 

Public: Sort a table by one key.

Parameters:
in Table to sort
colName Column label to sort by (for now first cell)
desc If true want descending sort, else ascent
err ObitErr error stack.
Returns:
I/O Code OBIT_IO_OK = OK.

ObitIOCode ObitTableUtilSort2f ObitTable in,
gchar *  colName1,
gint  cell1,
gboolean  desc1,
gchar *  colName2,
gint  cell2,
gboolean  desc2,
ObitErr err
 

Public: Sort a table by otwo numeric keys.

If the table is already marked in this order then it is not resorted.

Parameters:
in Table to sort
colName1 Column label to sort by (for now first cell) Most slowly varying key
cell1 Cell in colName1 of sortkey, 1 rel
desc1 If true want descending sort, else ascent
err ObitErr error stack.
colName2 Column label for secondary key Most rapidly varying key
cell2 Cell in colName2 of sortkey, 1 rel
desc2 If true want descending sort key 2, else ascent
Returns:
I/O Code OBIT_IO_OK = OK.


Generated on Fri Aug 31 22:13:09 2007 for Obit by  doxygen 1.3.9.1