#include <glib.h>
#include <string.h>
#include "memwatch.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "ObitTypes.h"
#include "ObitErr.h"
Go to the source code of this file.
Classes | |
| struct | Obit |
| Obit base class definition. More... | |
| struct | ObitClassInfo |
| ClassInfo Structure. More... | |
Defines | |
| #define | OBIT_ID 0x4f626974 |
| Obit object recognition string. | |
Typedefs | |
| typedef gpointer(* | newObitFP )(gchar *name) |
| typedef void(* | ObitClassInitFP )(void) |
| typedef gconstpointer(* | ObitGetClassFP )(void) |
| typedef gpointer(* | ObitCopyFP )(gpointer in, gpointer out, ObitErr *err) |
| typedef gpointer(* | ObitCloneFP )(Obit *in, Obit *out) |
| typedef gpointer(* | ObitRefFP )(gpointer in) |
| typedef gpointer(* | ObitUnrefFP )(gpointer *in) |
| typedef gboolean(* | ObitIsAFP )(gpointer in, gconstpointer class) |
| typedef void(* | ObitInitFP )(gpointer in) |
| Function pointers for private functions. | |
| typedef void(* | ObitClearFP )(gpointer in) |
| typedef void(* | ObitClassInfoDefFnFP )(gpointer inClass) |
| typedef gboolean(* | ObitInfoIsAFP )(ObitClassInfo *in, ObitClassInfo *type) |
Functions | |
| Obit * | newObit (gchar *name) |
| Public: Constructor. | |
| void | ObitClassInit (void) |
| Public: Class initializer. | |
| gconstpointer | ObitGetClass (void) |
| Public: ClassInfo pointer. | |
| Obit * | ObitCopy (Obit *in, Obit *out, ObitErr *err) |
| Public: Copy (deep) constructor. | |
| Obit * | ObitClone (Obit *in, Obit *out) |
| Public: Copy (shallow) constructor. | |
| gpointer | ObitRef (gpointer in) |
| Public: Ref pointer, increment reference count, return pointer. | |
| gpointer | ObitUnref (gpointer in) |
| Public: Unref pointer, decrement reference count and destroy if 0. | |
| gboolean | ObitIsA (gpointer in, gconstpointer type) |
| Public: returns TRUE is object is a member of myClassInfo or a derived class. | |
| gfloat | ObitMagicF (void) |
| Public: returns magic value blanking value. | |
| void | ObitTrimTrail (gchar *str) |
| Public: trim trailing blanks from string. | |
| gboolean | ObitStrCmp (gchar *str1, gchar *str2, gint maxlen) |
| Public: compare strings. | |
| gchar * | ObitToday (void) |
| Public: return today's date as yyyy-mm-dd. | |
| void | ObitClassInfoDefFn (gpointer inClass) |
| Public: Set Class function pointers. | |
| gboolean | ObitInfoIsA (ObitClassInfo *in, ObitClassInfo *type) |
| Public: returns TRUE is object is type or a derived class. | |
This class is the virtual base class of most Obit classes. Class hierarchies are generally noted in the names of modules, i.e. Obit is the base class from which (almost) all others are derived. Obit class derivation is by means of nested include files; each class has an include file for the data members and for the class function pointers. These include files include the corresponding includes of their parent class. The functional members are defined in ObitClassDef.h and the data members in ObitDef.h to allow recursive definition of derived classes.
|
|
Obit object recognition string. This is to be the first gint32 of each object. The value in ascii is "Obit" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Function pointers for private functions.
|
|
|
|
|
|
|
|
|
|
|
|
Public: Constructor. Initializes class if needed on first call.
|
|
|
Public: Set Class function pointers.
|
|
|
Public: Class initializer.
|
|
||||||||||||
|
Public: Copy (shallow) constructor. The result will have pointers to the more complex members.
|
|
||||||||||||||||
|
Public: Copy (deep) constructor. Copies are made of complex members such as files; these will be copied applying whatever selection is associated with the input.
|
|
|
Public: ClassInfo pointer. This method MUST be included in each derived class to ensure proper linking and class initialization. Initializes class if needed on first call.
|
|
||||||||||||
|
Public: returns TRUE is object is type or a derived class.
|
|
||||||||||||
|
Public: returns TRUE is object is a member of myClassInfo or a derived class. Should also work for derived classes.
|
|
|
Public: returns magic value blanking value.
|
|
|
Public: Ref pointer, increment reference count, return pointer. This function should always be used to copy pointers as this will ensure a proper reference count. Should also work for derived classes
|
|
||||||||||||||||
|
Public: compare strings. Blanks past the last non blank, non-NULL are considered insignificant
|
|
|
Public: return today's date as yyyy-mm-dd.
|
|
|
Public: trim trailing blanks from string.
|
|
|
Public: Unref pointer, decrement reference count and destroy if 0. if the input pointer is NULL, the reference count is already <=0 or the object is not a valid Obit Object, it simply returns.
|
1.3.9.1