IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3954


Ignore:
Timestamp:
May 16, 2005, 6:06:00 PM (21 years ago)
Author:
Paul Price
Message:

Synchronising SDRS with implementation. More to do yet.

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r3953 r3954  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.99 2005-05-17 00:18:46 jhoblitt Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.100 2005-05-17 04:06:00 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    581581\begin{itemize}
    582582\item Bug 393:
    583     \begin{itemize}
    584     \item add \code{PS_META_TIME} to \code{psMetadataType}
    585     \item change \code{psTimeFromISO()} to accept a \code{psTimeType} to specifiy
     583  \begin{itemize}
     584  \item add \code{PS_META_TIME} to \code{psMetadataType}
     585  \item change \code{psTimeFromISO()} to accept a \code{psTimeType} to specifiy
    586586    what time system the generated psTime object should be set to
    587     \end{itemize}
     587  \end{itemize}
    588588\item changes to ``Database Functions''
    589     \begin{itemize}
    590     \item change \code{psDBCreateTable()}'s definition to be clear about how to combine indexes and auto-increment
    591     \item add \code{p_psDBRunQuery()}
    592     \end{itemize}
    593 \end{itemize}
     589  \begin{itemize}
     590  \item change \code{psDBCreateTable()}'s definition to be clear about how to combine indexes and auto-increment
     591  \item add \code{p_psDBRunQuery()}
     592  \end{itemize}
     593\item \code{psLibInit} does not seed the RNG (done in \code{psRandom}).
     594\item Updated metadata iteration to use \code{psMetadataIterator}.
     595\item Restoring \code{nbuckets} to \code{psHashAlloc}, since it appears to be required by the code.
     596\item Adding \code{psArrayGet} and \code{psArraySet} since these are in the code.
     597\item \code{psMatrixEigenvectors} returns type \code{psImage} (not a single vector).
     598\item Specify that \code{col0,row0} shall be preserved with \code{psImageCopy}.
     599\item Added functions \code{psErrorGetStackSize},
     600  \code{psVectorRecycle}, \code{psVectorCopy},
     601  \code{psMetadataItemAllocStr}, \code{psMetadataItemAllocF32},
     602  \code{psMetadataItemAllocF64}, \code{psMetadataItemAllocS32},
     603  \code{psMetadataItemAllocBool}, \code{psMetadataAddS32},
     604  \code{psMetadataAddF32}, \code{psMetadataAddF64},
     605  \code{psMetadataAddList}, \code{psMetadataAddStr},
     606  \code{psMetadataAddVector}, \code{psMetadataAddImage},
     607  \code{psMetadataAddHash}, \code{psMetadataAddLookupTable},
     608  \code{psMetadataAddUnknown}, \code{psMetadataLookupF32},
     609  \code{psBitSetClear} already implemented.
     610\end{itemize}
     611
     612
     613
  • trunk/doc/pslib/psLibSDRS.tex

    r3953 r3954  
    1 %%% $Id: psLibSDRS.tex,v 1.223 2005-05-17 00:18:46 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.224 2005-05-17 04:06:00 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    10881088%
    10891089\begin{verbatim}
     1090unsigned int psErrorGetStackSize(void);
    10901091const psErr *psErrorGet(int which);
    10911092const psErr *psErrorLast(void);
     
    10931094\end{verbatim}
    10941095
    1095 The entire error stack may be printed to an open file descriptor by
    1096 calling \code{psErrorStackPrint} (or \code{psErrorStackPrintV}); if
    1097 and only if there are current errors, the printf-style string
    1098 \code{fmt} is first printed to the file descriptor \code{fd}. In this
    1099 printout, error codes must be replaced by their string equivalents as
    1100 defined in the next section.  Note that these are also available in
    1101 the \code{psErr} structure. The successive lines of the traceback
    1102 should be indented by an additional space.  \code{psErrorStackPrintV}
    1103 must not invoke \code{va_end}.
     1096\code{psErrorGetStackSize} shall return the number of errors on the
     1097stack.  The entire error stack may be printed to an open file
     1098descriptor by calling \code{psErrorStackPrint} (or
     1099\code{psErrorStackPrintV}); if and only if there are current errors,
     1100the printf-style string \code{fmt} is first printed to the file
     1101descriptor \code{fd}. In this printout, error codes must be replaced
     1102by their string equivalents as defined in the next section.  Note that
     1103these are also available in the \code{psErr} structure. The successive
     1104lines of the traceback should be indented by an additional space.
     1105\code{psErrorStackPrintV} must not invoke \code{va_end}.
    11041106%
    11051107\begin{verbatim}
     
    13791381psVector *psVectorAlloc(int nalloc, psElemType type);
    13801382psVector *psVectorRealloc(psVector *vector, int nalloc);
     1383psVector *psVectorRecycle(psVector *vector, int nalloc, psElemType type);
    13811384\end{verbatim}
    13821385%
     
    13911394current value of \code{psVector.n}, \code{psVector.n} is left intact.
    13921395If the value of \code{vector} is \code{NULL}, then
    1393 \code{psVectorRealloc} must return an error.
     1396\code{psVectorRealloc} must generate an error.
     1397
     1398\code{psVectorRecycle} shall recycle the input \code{vector}, such
     1399that the output \code{psVector} matches the length required for
     1400\code{nalloc} elements of the specified \code{type}.  In the event
     1401that the input \code{vector} is \code{NULL}, a new \code{psVector}
     1402shall be allocated and returned.
    13941403
    13951404\begin{verbatim}
     
    14211430that there will be room on the next loop for \code{nExtend} new
    14221431elements, as in this example.
     1432
     1433\begin{verbatim}
     1434psVector *psVectorCopy(psVector *output, psVector *input, psElemType type);
     1435\end{verbatim}
     1436
     1437\code{psVectorCopy} shall copy the elements in the \code{input} vector
     1438to the \code{output} vector, casting to the specified \code{type}.  In
     1439the event that the \code{output} is \code{NULL}, a new \code{psVector}
     1440shall be allocated.  The returned \code{psVector} shall be of the
     1441given \code{type}.
    14231442
    14241443\subsection{Simple Images}
     
    20232042\begin{verbatim}
    20242043psBitSet *psBitSetSet(psBitSet *myBits, int bit);
     2044psBitSet* psBitSetClear(psBitSet* inBits, int bit);
    20252045psBitSet *psBitSetOp(psBitSet *outBits, const psBitSet *inBits1, char *operator, const psBitSet *inBits2);
    20262046psBitSet *psBitSetNot(psBitSet *out, psBitSet *in);
     
    20322052\code{psBitSet}, and returns the updated bitset.  The input bitset
    20332053will be modified.
     2054
     2055\code{psBitSetClear} clears the specified \code{bit} in the \code{inBits}
     2056and returns the updated bitset.  The input bitset will be modified.
    20342057
    20352058\code{psBitSetOp} returns the \code{psBitSet} that is the result of
     
    38333856created to hold future entries of that keyword.
    38343857
     3858As a convenience to the user, the following type-specific functions are
     3859also defined:
     3860\begin{verbatim}
     3861psMetadataItem* psMetadataItemAllocStr(const char* name, const char* comment, const char* value);
     3862psMetadataItem* psMetadataItemAllocF32(const char* name, const char* comment, psF32 value);
     3863psMetadataItem* psMetadataItemAllocF64(const char* name, const char* comment, psF64 value);
     3864psMetadataItem* psMetadataItemAllocS32(const char* name, const char* comment, psS32 value);
     3865psMetadataItem* psMetadataItemAllocBool(const char* name, const char* comment, psBool value);
     3866\end{verbatim}
     3867
    38353868\subsubsection{Metadata APIs}
    38363869
     
    39714004\end{verbatim}
    39724005
     4006As a convenience to the user, the following type-specific functions
     4007are specified:
     4008\begin{verbatim}
     4009psBool psMetadataAddS32(psMetadata* md, psS32 location, const char* name, const char* comment, psS32 value);
     4010psBool psMetadataAddF32(psMetadata* md, psS32 location, const char* name, const char* comment, psF32 value);
     4011psBool psMetadataAddF64(psMetadata* md, psS32 location, const char* name, const char* comment, psF64 value);
     4012psBool psMetadataAddList(psMetadata* md, psS32 location, const char* name, const char* comment,
     4013                         psList* value);
     4014psBool psMetadataAddStr(psMetadata* md, psS32 location, const char* name, const char* comment,
     4015                        const char* value);
     4016psBool psMetadataAddVector(psMetadata* md, psS32 location, const char* name, const char* comment,
     4017                           psVector* value);
     4018psBool psMetadataAddImage(psMetadata* md, psS32 location, const char* name, const char* comment,
     4019                          psImage* value);
     4020psBool psMetadataAddHash(psMetadata* md, psS32 location, const char* name, const char* comment,
     4021                         psHash* value);
     4022psBool psMetadataAddLookupTable(psMetadata* md, psS32 location, const char* name, const char* comment,
     4023                                psLookupTable* value);
     4024psBool psMetadataAddUnknown(psMetadata* md, psS32 location, const char* name, const char* comment,
     4025                            psPtr value);
     4026\end{verbatim}
     4027
     4028
    39734029Items may be removed from the metadata by specifying a key or a
    39744030location in the list.  If the value of \code{name} is \code{NULL}, the
     
    39994055void *psMetadataLookupPtr(bool *status, const psMetadata *md, const char *key);
    40004056psS32 psMetadataLookupS32(bool *status, const psMetadata *md, const char *key);
     4057psF32 psMetadataLookupF32(bool *status, const psMetadata *md, const char *key);
    40014058psF64 psMetadataLookupF64(bool *status, const psMetadata *md, const char *key);
    40024059\end{verbatim}
Note: See TracChangeset for help on using the changeset viewer.