Changeset 3954 for trunk/doc/pslib/psLibSDRS.tex
- Timestamp:
- May 16, 2005, 6:06:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibSDRS.tex (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibSDRS.tex
r3953 r3954 1 %%% $Id: psLibSDRS.tex,v 1.22 3 2005-05-17 00:18:46 jhoblittExp $1 %%% $Id: psLibSDRS.tex,v 1.224 2005-05-17 04:06:00 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1088 1088 % 1089 1089 \begin{verbatim} 1090 unsigned int psErrorGetStackSize(void); 1090 1091 const psErr *psErrorGet(int which); 1091 1092 const psErr *psErrorLast(void); … … 1093 1094 \end{verbatim} 1094 1095 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 1097 stack. The entire error stack may be printed to an open file 1098 descriptor by calling \code{psErrorStackPrint} (or 1099 \code{psErrorStackPrintV}); if and only if there are current errors, 1100 the printf-style string \code{fmt} is first printed to the file 1101 descriptor \code{fd}. In this printout, error codes must be replaced 1102 by their string equivalents as defined in the next section. Note that 1103 these are also available in the \code{psErr} structure. The successive 1104 lines of the traceback should be indented by an additional space. 1105 \code{psErrorStackPrintV} must not invoke \code{va_end}. 1104 1106 % 1105 1107 \begin{verbatim} … … 1379 1381 psVector *psVectorAlloc(int nalloc, psElemType type); 1380 1382 psVector *psVectorRealloc(psVector *vector, int nalloc); 1383 psVector *psVectorRecycle(psVector *vector, int nalloc, psElemType type); 1381 1384 \end{verbatim} 1382 1385 % … … 1391 1394 current value of \code{psVector.n}, \code{psVector.n} is left intact. 1392 1395 If 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 1399 that the output \code{psVector} matches the length required for 1400 \code{nalloc} elements of the specified \code{type}. In the event 1401 that the input \code{vector} is \code{NULL}, a new \code{psVector} 1402 shall be allocated and returned. 1394 1403 1395 1404 \begin{verbatim} … … 1421 1430 that there will be room on the next loop for \code{nExtend} new 1422 1431 elements, as in this example. 1432 1433 \begin{verbatim} 1434 psVector *psVectorCopy(psVector *output, psVector *input, psElemType type); 1435 \end{verbatim} 1436 1437 \code{psVectorCopy} shall copy the elements in the \code{input} vector 1438 to the \code{output} vector, casting to the specified \code{type}. In 1439 the event that the \code{output} is \code{NULL}, a new \code{psVector} 1440 shall be allocated. The returned \code{psVector} shall be of the 1441 given \code{type}. 1423 1442 1424 1443 \subsection{Simple Images} … … 2023 2042 \begin{verbatim} 2024 2043 psBitSet *psBitSetSet(psBitSet *myBits, int bit); 2044 psBitSet* psBitSetClear(psBitSet* inBits, int bit); 2025 2045 psBitSet *psBitSetOp(psBitSet *outBits, const psBitSet *inBits1, char *operator, const psBitSet *inBits2); 2026 2046 psBitSet *psBitSetNot(psBitSet *out, psBitSet *in); … … 2032 2052 \code{psBitSet}, and returns the updated bitset. The input bitset 2033 2053 will be modified. 2054 2055 \code{psBitSetClear} clears the specified \code{bit} in the \code{inBits} 2056 and returns the updated bitset. The input bitset will be modified. 2034 2057 2035 2058 \code{psBitSetOp} returns the \code{psBitSet} that is the result of … … 3833 3856 created to hold future entries of that keyword. 3834 3857 3858 As a convenience to the user, the following type-specific functions are 3859 also defined: 3860 \begin{verbatim} 3861 psMetadataItem* psMetadataItemAllocStr(const char* name, const char* comment, const char* value); 3862 psMetadataItem* psMetadataItemAllocF32(const char* name, const char* comment, psF32 value); 3863 psMetadataItem* psMetadataItemAllocF64(const char* name, const char* comment, psF64 value); 3864 psMetadataItem* psMetadataItemAllocS32(const char* name, const char* comment, psS32 value); 3865 psMetadataItem* psMetadataItemAllocBool(const char* name, const char* comment, psBool value); 3866 \end{verbatim} 3867 3835 3868 \subsubsection{Metadata APIs} 3836 3869 … … 3971 4004 \end{verbatim} 3972 4005 4006 As a convenience to the user, the following type-specific functions 4007 are specified: 4008 \begin{verbatim} 4009 psBool psMetadataAddS32(psMetadata* md, psS32 location, const char* name, const char* comment, psS32 value); 4010 psBool psMetadataAddF32(psMetadata* md, psS32 location, const char* name, const char* comment, psF32 value); 4011 psBool psMetadataAddF64(psMetadata* md, psS32 location, const char* name, const char* comment, psF64 value); 4012 psBool psMetadataAddList(psMetadata* md, psS32 location, const char* name, const char* comment, 4013 psList* value); 4014 psBool psMetadataAddStr(psMetadata* md, psS32 location, const char* name, const char* comment, 4015 const char* value); 4016 psBool psMetadataAddVector(psMetadata* md, psS32 location, const char* name, const char* comment, 4017 psVector* value); 4018 psBool psMetadataAddImage(psMetadata* md, psS32 location, const char* name, const char* comment, 4019 psImage* value); 4020 psBool psMetadataAddHash(psMetadata* md, psS32 location, const char* name, const char* comment, 4021 psHash* value); 4022 psBool psMetadataAddLookupTable(psMetadata* md, psS32 location, const char* name, const char* comment, 4023 psLookupTable* value); 4024 psBool psMetadataAddUnknown(psMetadata* md, psS32 location, const char* name, const char* comment, 4025 psPtr value); 4026 \end{verbatim} 4027 4028 3973 4029 Items may be removed from the metadata by specifying a key or a 3974 4030 location in the list. If the value of \code{name} is \code{NULL}, the … … 3999 4055 void *psMetadataLookupPtr(bool *status, const psMetadata *md, const char *key); 4000 4056 psS32 psMetadataLookupS32(bool *status, const psMetadata *md, const char *key); 4057 psF32 psMetadataLookupF32(bool *status, const psMetadata *md, const char *key); 4001 4058 psF64 psMetadataLookupF64(bool *status, const psMetadata *md, const char *key); 4002 4059 \end{verbatim}
Note:
See TracChangeset
for help on using the changeset viewer.
