This commit is contained in:
Timur A. Fatkhullin
2026-02-08 21:50:48 +03:00
parent 86bb53d358
commit 07cf211b3d
10 changed files with 2085 additions and 1984 deletions

View File

@@ -1,7 +1,7 @@
#include <iostream>
// #include <mcc_ccte_erfa.h>
#include <mcc_coordinate.h>
// #include <mcc_coordinate.h>
#include <mcc_deserializer.h>
#include <mcc_serializer.h>
@@ -26,10 +26,13 @@ void serialize(VT const& value)
{
MccSerializer<VT> ser;
std::string s;
mcc_serialization_params_t pars{};
pars.norm_sxgm = true;
pars.coordpair_format = mcc::MccSerializedCoordPairFormat::MCC_SERIALIZED_FORMAT_SXGM_HOURDEG;
auto err = ser(s, value);
auto err = ser(s, value, pars);
if (err) {
std::cout << "SERIALIZING ERR: " << err << "\n";
std::cout << "SERIALIZING ERR: " << err.message() << "\n";
} else {
std::cout << "SERIALIZED: " << s << "\n";
}
@@ -136,6 +139,9 @@ int main()
std::cout << "\tfor 'double' type: ";
serialize(v);
std::cout << "\tfor 'coord pair' type: ";
serialize(icrs);
std::cout << "\tfor 'coord pair' type: ";
serialize(radec_obs);