IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4536


Ignore:
Timestamp:
Jul 11, 2005, 12:54:39 PM (21 years ago)
Author:
eugene
Message:

psTimetoLMST, psImageCut, C++

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

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

    r4533 r4536  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.158 2005-07-11 20:41:19 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.159 2005-07-11 22:54:39 eugene Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    751751\item Adjusted \code{psStats} to reflect robust / fitted statistics as defined in the ADD.
    752752\item Changed definition of \code{psDB} to abstract database type.
    753 \end{itemize}
    754 
     753\item clarified psTimeToLMST
     754\item added cutCols, cutRows to psImageCut
     755\item added remaining integer primatives to psMetadata
     756\item added C++ compatibility specification
     757\end{itemize}
     758
  • trunk/doc/pslib/psLibSDRS.tex

    r4535 r4536  
    1 %%% $Id: psLibSDRS.tex,v 1.314 2005-07-11 21:49:58 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.315 2005-07-11 22:54:39 eugene Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    200200convenience to the user.
    201201
     202\subsection{C++ Compatibility}
     203
     204All PSLib ``public'' header files should comptable with \code{C++}.
     205This primarily involves using \code{C} pre-processor directives to
     206enable \code{C++}'s \code{extern "C"} linkage specification when a
     207header file is being processed as part of a \code{C++} compilation.
     208
     209An example of wrapping a header file with an \code{extern "C"} block:
     210
     211\begin{verbatim}
     212#ifndef FOO_H
     213#define FOO_H 1
     214
     215#ifdef __cplusplus
     216extern "C" {
     217#endif
     218
     219...
     220
     221#ifdef __cplusplus
     222}
     223#endif
     224
     225#endif // FOO_H
     226\end{verbatim}
     227
     228Other coding cautions include avoiding trailing commas in
     229\code{enum}s, protection of the poison \code{pragma}s used for the
     230memory system (below), and avoiding the qualifier \code{restrict}.
     231
    202232\subsection{Use of {\tt restrict}}
    203233
     
    214244of \code{restrict} should be kept to a minimum; it should only be
    215245employed where necessary, and where the assumption will hold.
     246Restricts should also be avoided because they are incompatible with
     247\code{C++}.
    216248
    217249\subsection{Return values}
     
    22712303    const union {
    22722304        psBool B;                       ///< boolean value
     2305        psS8  S8;                       ///< integer data
     2306        psS16 S16;                      ///< integer data
    22732307        psS32 S32;                      ///< integer data
     2308        psU8  U8;                       ///< integer data
     2309        psU16 U16;                      ///< integer data
     2310        psU32 U32;                      ///< integer data
    22742311        psF32 F32;                      ///< floating-point data
    22752312        psF64 F64;                      ///< double-precision data
     
    22852322experience shows that such tags are useful.  The entry \code{name}
    22862323specifies the name of the metadata item.  The value of the metadata is
    2287 given by the union \code{data}, and may be of type \code{psS32},
     2324given by the union \code{data}, and may be of type \code{psU8},
     2325\code{psU16}, \code{psU32}, \code{psS8}, \code{psS16}, \code{psS32},
    22882326\code{psF32}, \code{psF64}, or an arbitrary rich structure pointed at
    22892327by the \code{void} pointer \code{V}.  A character string comment
     
    47954833\begin{prototype}
    47964834psVector *psImageCut(psVector *out,
    4797                      psVector *coords,
     4835                     psVector *cutCols,
     4836                     psVector *cutRows,
    47984837                     const psImage *input,
    47994838                     const psImage *mask,
     
    57175756
    57185757The function may accept any of the \code{psTimeType} types with
    5719 \emph{SI} length seconds.  The \code{time} is modified and returned.
    5720 Note that this function requires the value $UT1-UTC$ (see
    5721 \code{psTimeGetUT1Delta()}) and should use the UT1 values interpolated
    5722 from IERS bulletin B. 
     5758\emph{SI} length seconds.  The \code{time} is modified (rationlized to
     5759TAI units) and returned.  Note that this function requires the value
     5760$UT1-UTC$ (see \code{psTimeGetUT1Delta()}) and should use the UT1
     5761values interpolated from IERS bulletin B.
    57235762
    57245763The following utility function encapsulates the PSLib mechanism to
Note: See TracChangeset for help on using the changeset viewer.