IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4540 for trunk/psLib/src/sys


Ignore:
Timestamp:
Jul 12, 2005, 9:12:01 AM (21 years ago)
Author:
desonia
Message:

massive restructuring of codebase.

Location:
trunk/psLib/src/sys
Files:
2 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/Makefile.am

    r4446 r4540  
    1 #Makefile for sysUtils functions of psLib
     1#Makefile for sys functions of psLib
    22#
    3 INCLUDES = \
    4         -I$(top_srcdir)/src/astro \
    5         -I$(top_srcdir)/src/db \
    6         -I$(top_srcdir)/src/fft \
    7         -I$(top_srcdir)/src/fits \
    8         -I$(top_srcdir)/src/imageops \
    9         -I$(top_srcdir)/src/math \
    10         -I$(top_srcdir)/src/mathtypes \
    11         -I$(top_srcdir)/src/sys \
    12         -I$(top_srcdir)/src/types \
    13         -I$(top_srcdir)/src/xml \
    14         $(all_includes)
     3noinst_LTLIBRARIES = libpslibsys.la
    154
    16 noinst_LTLIBRARIES = libpslibsysUtils.la
     5libpslibsys_la_SOURCES = \
     6        psAbort.c \
     7        psConfigure.c  \
     8        psError.c      \
     9        psErrorCodes.c \
     10        psLogMsg.c     \
     11        psMemory.c     \
     12        psString.c     \
     13        psTrace.c
    1714
    18 libpslibsysUtils_la_SOURCES = \
    19         psMemory.c     \
    20         psError.c      \
    21         psTrace.c      \
    22         psLogMsg.c     \
    23         psAbort.c      \
    24         psString.c     \
    25         psConfigure.c  \
    26         psErrorCodes.c
     15EXTRA_DIST = sys.i
    2716
    28 BUILT_SOURCES = psSysUtilsErrors.h
    29 EXTRA_DIST = psSysUtilsErrors.dat psSysUtilsErrors.h sysUtils.i
     17BUILT_SOURCES = psErrorCodes.c
    3018
    31 psSysUtilsErrors.h: psSysUtilsErrors.dat
    32         $(top_srcdir)/src/psParseErrorCodes --data=$? $@
     19psErrorCodes.c: ../psErrorCodes_$(LANG).dat psErrorCodes.c.in psErrorCodes.h
     20        $(top_srcdir)/psParseErrorCodes --data=../psErrorCodes_$(LANG).dat $@
     21
     22psError.h: psErrorCodes.h
     23
     24psErrorCodes.h: ../psErrorCodes_$(LANG).dat psErrorCodes.h.in
     25        $(top_srcdir)/psParseErrorCodes --data=../psErrorCodes_$(LANG).dat $@
    3326
    3427pslibincludedir = $(includedir)
    3528pslibinclude_HEADERS = \
    36         psType.h       \
     29        psAbort.h \
     30        psConfigure.h  \
     31        psError.h      \
     32        psErrorCodes.h \
     33        psLogMsg.h     \
    3734        psMemory.h     \
    38         psError.h      \
     35        psString.h     \
    3936        psTrace.h      \
    40         psLogMsg.h     \
    41         psAbort.h      \
    42         psString.h     \
    43         psConfigure.h  \
    44         psErrorCodes.h
    45 
     37        psType.h
  • trunk/psLib/src/sys/psConfigure.c

    r4214 r4540  
    1313 *  @author Robert DeSonia, MHPCC
    1414 *
    15  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2005-06-11 02:19:05 $
     15 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2005-07-12 19:12:01 $
    1717 *
    1818 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2222#include "psError.h"
    2323#include "psConfigure.h"
    24 #include "psSysUtilsErrors.h"
     24#include "psErrorText.h"
    2525#include "config.h"
    2626
  • trunk/psLib/src/sys/psErrorCodes.c

    r4392 r4540  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-25 02:02:05 $
     9 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-07-12 19:12:01 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2020#include "psMemory.h"
    2121
    22 #include "psSysUtilsErrors.h"
    23 
    24 /* N.B., lines between '//~Start' and '//~End' are automatic generated from
    25  * the template following the '//~Start'.  The template is used to generate
    26  * the other lines by, for each error class in psErrorCodes.dat, the following
    27  * substitutions are made:
    28  *     $1  The error code name (first word in the psErrorCodes.dat lines)
    29  *     $2  The error description (rest of the line in psErrorCodes.dat)
    30  *     $n  The order of the source line in psErrorCodes.dat (comments excluded)
    31  *
    32  * DO NOT EDIT THE LINES BETWEEN //~Start and //~End!  ANY CHANGES WILL BE OVERWRITTEN.
    33  */
     22#include "psErrorText.h"
    3423
    3524static psErrorDescription staticErrorCodes[] = {
    3625            {PS_ERR_NONE,"not an error"},
    3726            {PS_ERR_BASE,"base error"},
    38             //~Start    {PS_ERR_$1,"$2"},
    3927            {PS_ERR_UNKNOWN,"unknown error"},
    4028            {PS_ERR_IO,"I/O error"},
     
    4836            {PS_ERR_UNEXPECTED_NULL,"unexpected NULL found"},
    4937            {PS_ERR_OS_CALL_FAILED,"unexpected result from an OS standard library call"},
    50             //~End
    5138            {PS_ERR_N_ERR_CLASSES,"error classes end marker"}
    5239        };
  • trunk/psLib/src/sys/psLogMsg.c

    r4367 r4540  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-23 03:50:29 $
     14 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-07-12 19:12:01 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4242#include "psTrace.h"
    4343
    44 #include "psSysUtilsErrors.h"
     44#include "psErrorText.h"
    4545
    4646#define MIN_LOG_LEVEL 0
  • trunk/psLib/src/sys/psMemory.c

    r4401 r4540  
    88*  @author Robert Lupton, Princeton University
    99*
    10 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-06-27 20:38:12 $
     10*  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-07-12 19:12:01 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2525#include "psLogMsg.h"
    2626
    27 #include "psSysUtilsErrors.h"
     27#include "psErrorText.h"
    2828
    2929#define P_PS_MEMMAGIC (psPtr )0xdeadbeef   // Magic number in psMemBlock header
  • trunk/psLib/src/sys/psString.c

    r4434 r4540  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-30 00:33:36 $
     14 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-07-12 19:12:01 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2525#include "psError.h"
    2626
    27 #include "psSysUtilsErrors.h"
     27#include "psErrorText.h"
    2828
    2929psString psStringCopy(const char *string)
  • trunk/psLib/src/sys/psTrace.c

    r4409 r4540  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.53 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-06-28 20:17:52 $
     11 *  @version $Revision: 1.54 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-07-12 19:12:01 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5151#include "psLogMsg.h"
    5252
    53 #include "psSysUtilsErrors.h"
     53#include "psErrorText.h"
    5454
    5555static p_psComponent* cRoot = NULL; // The root of the trace component
  • trunk/psLib/src/sys/psType.h

    r4342 r4540  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-06-22 02:05:41 $
     12*  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2005-07-12 19:12:01 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9494} psElemType;
    9595
     96/** Enumeration primarily used with metadata which defines a data structure
     97 *  e.g., list, array, FITS file, etc.
     98*/
     99typedef enum {
     100    PS_DATA_S32  = PS_TYPE_S32,        ///< psS32
     101    PS_DATA_F32  = PS_TYPE_F32,        ///< psF32
     102    PS_DATA_F64  = PS_TYPE_F64,        ///< psF64
     103    PS_DATA_BOOL = PS_TYPE_BOOL,       ///< psBool
     104    PS_DATA_STRING = 0x10000,          ///< psString (char *)
     105    PS_DATA_ARRAY,                     ///< psArray
     106    PS_DATA_BITSET,                    ///< psBitSet
     107    PS_DATA_CELL,                      ///< psCell
     108    PS_DATA_CHIP,                      ///< psChip
     109    PS_DATA_CUBE,                      ///< psCube
     110    PS_DATA_FITS,                      ///< psFits
     111    PS_DATA_HASH,                      ///< psHash
     112    PS_DATA_HISTOGRAM,                 ///< psHistogram
     113    PS_DATA_IMAGE,                     ///< psImage
     114    PS_DATA_KERNEL,                    ///< psKernel
     115    PS_DATA_LIST,                      ///< psList
     116    PS_DATA_LOOKUPTABLE,               ///< psLookupTable
     117    PS_DATA_METADATA,                  ///< psMetadata
     118    PS_DATA_METADATAITEM,              ///< psMetadataItem
     119    PS_DATA_MINIMIZATION,              ///< psMinimization
     120    PS_DATA_PIXELS,                    ///< psPixels
     121    PS_DATA_PLANE,                     ///< psPlane
     122    PS_DATA_PLANEDISTORT,              ///< psPlaneDistort
     123    PS_DATA_PLANETRANSFORM,            ///< psPlaneTransform
     124    PS_DATA_POLYNOMIAL1D,              ///< psPolynomial1D
     125    PS_DATA_POLYNOMIAL2D,              ///< psPolynomial2D
     126    PS_DATA_POLYNOMIAL3D,              ///< psPolynomial3D
     127    PS_DATA_POLYNOMIAL4D,              ///< psPolynomial4D
     128    PS_DATA_PROJECTION,                ///< psProjection
     129    PS_DATA_READOUT,                   ///< psReadout
     130    PS_DATA_REGION,                    ///< psRegion
     131    PS_DATA_SCALAR,                    ///< psScalar
     132    PS_DATA_SPHERE,                    ///< psSphere
     133    PS_DATA_SPHERETRANSFORM,           ///< psSphereTransform
     134    PS_DATA_SPLINE1D,                  ///< psSpline1D
     135    PS_DATA_STATS,                     ///< psStats
     136    PS_DATA_TIME,                      ///< psTime
     137    PS_DATA_VECTOR,                    ///< psVector
     138    PS_DATA_UNKNOWN,                   ///< Other data of an unknown type
     139    PS_DATA_METADATA_MULTI             ///< Used internally for metadata; not a 'real' type
     140} psDataType;
     141
    96142#define PS_TYPE_MASK PS_TYPE_U8        /**< the psElemType to use for mask image */
    97143#define PS_TYPE_MASK_DATA U8           /**< the data member to use for mask image */
     
    232278typedef struct
    233279{
    234     psElemType type;            ///< Primitive type.
    235     psDimen dimen;              ///< Dimensionality.
     280    psElemType type;                   ///< Primitive type.
     281    psDimen dimen;                     ///< Dimensionality.
    236282}
    237283psType;
     284
     285typedef struct
     286{
     287    psElemType type;                   ///< The type
     288    psDimen dimen;                     ///< The dimensionality.
     289    //    psElemType type;                   ///< The type
     290}
     291psMathType;
    238292
    239293/** The type of a basic data type
     
    245299typedef struct
    246300{
    247     psType type;              ///< Data type information
     301    psMathType type;              ///< Data type information
    248302}
    249303psMath;
Note: See TracChangeset for help on using the changeset viewer.