Changeset 19655 for trunk/Mars/mcore


Ignore:
Timestamp:
09/17/19 09:51:58 (5 years ago)
Author:
tbretz
Message:
Added to more functions to be able to access the returncode for the object.
Location:
trunk/Mars/mcore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r19405 r19655  
    4848#else
    4949#include <fstream>
    50 #define izstream ifstream
     50#define izstream std::ifstream
    5151#warning Support for zipped FITS files disabled.
    5252#endif
  • trunk/Mars/mcore/nova.h

    r19552 r19655  
    179179    }
    180180
     181    inline int GetObjectRst(RstTime &rst, const EquPosn &equ, const LnLatPosn &obs, const double &jd, const double &hrz=0)
     182    {
     183        // 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
     184        return ln_get_object_next_rst_horizon(jd, const_cast<LnLatPosn*>(&obs), const_cast<EquPosn*>(&equ), hrz, &rst);
     185    }
     186    inline int GetObjectRst(RstTime &rst, const EquPosn &equ, const double &jd, const double &hrz=0)
     187    {
     188        // 0 for success, 1 for circumpolar (above the horizon), -1 for circumpolar (bellow the horizon)
     189        return GetObjectRst(rst, equ, PRESET_OBSERVATORY, jd, hrz);
     190    }
     191
    181192    inline RstTime GetSolarRst(const double &jd, const LnLatPosn &obs, const double &hrz=kSolarStandardHorizon)
    182193    {
     
    185196        return rst;
    186197    }
     198
    187199    inline RstTime GetSolarRst(const double &jd, const double &hrz=kSolarStandardHorizon)
    188200    {
Note: See TracChangeset for help on using the changeset viewer.