src/astro/ephemerides/tabulatedEphemeris.cpp
//! Function to check whether an ephemeris is a (type of) tabulated ephemeris
Function to check whether an ephemeris is a (type of) tabulated ephemeris
Function to check whether an ephemeris is a ( type of ) tabulated ephemeris
bool isTabulatedEphemeris( const std::shared_ptr< Ephemeris > ephemeris )
{
    bool objectIsTabulated = 0;
    if( ( std::dynamic_pointer_cast< TabulatedCartesianEphemeris< double, double > >( ephemeris ) != nullptr ) ||
            ( std::dynamic_pointer_cast< TabulatedCartesianEphemeris< long double, double > >( ephemeris ) != nullptr ) ||
            ( std::dynamic_pointer_cast< TabulatedCartesianEphemeris< long double, Time > >( ephemeris ) != nullptr ) ||
            ( std::dynamic_pointer_cast< TabulatedCartesianEphemeris< double, Time > >( ephemeris ) != nullptr ) )
    {
        objectIsTabulated = 1;
    }
    return objectIsTabulated;
}
bool isTabulatedEphemeris ( const std :: shared_ptr < Ephemeris > ephemeris ) { bool objectIsTabulated = 0 ; if ( ( std :: dynamic_pointer_cast < TabulatedCartesianEphemeris < double , double > > ( ephemeris ) != nullptr ) || ( std :: dynamic_pointer_cast < TabulatedCartesianEphemeris < long double , double > > ( ephemeris ) != nullptr ) || ( std :: dynamic_pointer_cast < TabulatedCartesianEphemeris < long double , Time > > ( ephemeris ) != nullptr ) || ( std :: dynamic_pointer_cast < TabulatedCartesianEphemeris < double , Time > > ( ephemeris ) != nullptr ) ) { objectIsTabulated = 1 ; } return objectIsTabulated ; }
Function to check whether an ephemeris is a (type of) tabulated ephemeris
Function to check whether an ephemeris is a ( type of ) tabulated ephemeris