7 #include "lsst/pex/exceptions.h"
9 namespace pexExcept = lsst::pex::exceptions;
25 if (!formatLine || !starName)
return 0;
26 const char *p = strstr(formatLine, starName);
28 return atoi(p + strlen(starName));
bool decreasingFlux(const BaseStar *star1, const BaseStar *star2)
enables to sort easily a starList (of anything that derives from BaseStar)
The base class for handling stars. Used by all matching routines.
bool increasingMag(const BaseStar *star1, const BaseStar *star2)
int decodeFormat(const char *formatLine, const char *starName)