siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
stream.hpp
Go to the documentation of this file.
1#pragma once
2
8#include "../../centers.hpp"
9#include "../../frames.hpp"
10
11#include <ostream>
12
13namespace siderust {
14namespace coordinates {
15namespace detail {
16
17template <typename C, typename F> inline void write_center_frame(std::ostream &os) {
18 os << centers::CenterTraits<C>::name() << ' ' << frames::FrameTraits<F>::name();
19}
20
21template <typename F> inline void write_frame(std::ostream &os) {
22 os << frames::FrameTraits<F>::name();
23}
24
25} // namespace detail
26} // namespace coordinates
27} // namespace siderust
void write_frame(std::ostream &os)
Definition stream.hpp:21
void write_center_frame(std::ostream &os)
Definition stream.hpp:17
SFINAE helper: every frame tag must provide these static members.
Definition frames.hpp:27