26 #ifndef CARGO_FD_CARGO_FD_HPP
27 #define CARGO_FD_CARGO_FD_HPP
43 template <
class Cargo>
49 visitable.accept(visitor);
58 template <
class Cargo>
59 void saveToFD(
const int fd,
const Cargo& visitable)
64 visitable.accept(visitor);
71 #endif // CARGO_FD_CARGO_FD_HPP
Definition: to-fdstore-visitor.hpp:44
void loadFromFD(const int fd, Cargo &visitable)
Load binary data from a file/socket/pipe represented by the fd.
Definition: cargo-fd.hpp:44
Visitor for saving to FDStore.
Visitor for loading from FDStore.
Definition: from-fdstore-visitor.hpp:40
Helper for compile-time checking against existance of template method 'accept'.
Definition: is-visitable.hpp:49
void saveToFD(const int fd, const Cargo &visitable)
Save binary data to a file/socket/pipe represented by the fd.
Definition: cargo-fd.hpp:59