-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from bluescarni/pr/vsop2013_planet
VSOP2013 planet
- Loading branch information
Showing
14 changed files
with
569 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright 2023, 2024 Dario Izzo ([email protected]), Francesco Biscani | ||
// ([email protected]) | ||
// | ||
// This file is part of the kep3 library. | ||
// | ||
// This Source Code Form is subject to the terms of the Mozilla | ||
// Public License v. 2.0. If a copy of the MPL was not distributed | ||
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
#ifndef kep3_PLANET_VSOP2013_H | ||
#define kep3_PLANET_VSOP2013_H | ||
|
||
#include <array> | ||
#include <memory> | ||
#include <string> | ||
|
||
#include <kep3/detail/s11n.hpp> | ||
#include <kep3/detail/visibility.hpp> | ||
#include <kep3/planet.hpp> | ||
|
||
namespace kep3::udpla | ||
{ | ||
|
||
class kep3_DLL_PUBLIC vsop2013 | ||
{ | ||
struct impl; | ||
|
||
std::unique_ptr<impl> m_impl; | ||
|
||
friend class boost::serialization::access; | ||
void save(boost::archive::binary_oarchive &, unsigned) const; | ||
void load(boost::archive::binary_iarchive &, unsigned); | ||
BOOST_SERIALIZATION_SPLIT_MEMBER() | ||
|
||
public: | ||
vsop2013(); | ||
explicit vsop2013(std::string, double = 1e-5); | ||
vsop2013(vsop2013 &&) noexcept; | ||
vsop2013(const vsop2013 &); | ||
vsop2013 &operator=(vsop2013 &&) noexcept; | ||
vsop2013 &operator=(const vsop2013 &); | ||
~vsop2013(); | ||
|
||
// Mandatory UDPLA methods. | ||
[[nodiscard]] std::array<std::array<double, 3>, 2> eph(double) const; | ||
|
||
// Optional UDPLA methods | ||
[[nodiscard]] std::string get_name() const; | ||
}; | ||
|
||
} // namespace kep3::udpla | ||
|
||
TANUKI_S11N_WRAP_EXPORT_KEY(kep3::udpla::vsop2013, kep3::detail::planet_iface) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.