1 #ifndef GENESIS_PLACEMENT_FORMATS_JPLACE_WRITER_H_
2 #define GENESIS_PLACEMENT_FORMATS_JPLACE_WRITER_H_
89 void to_file (
Sample const& smp, std::string
const& filename)
const;
108 return branch_length_precision_;
117 branch_length_precision_ = value;
123 int branch_length_precision_ = 6;
129 #endif // include guard
void to_document(Sample const &smp, utils::JsonDocument &doc) const
Store the data of a Sample in a JsonDocument object.
size_t branch_length_precision() const
Get the precision used for printing the branch_length floating point numbers of the reference Tree of...
void to_file(Sample const &smp, std::string const &filename) const
Write the data of a Sample to a file in Jplace format.
JplaceWriter & branch_length_precision(size_t value)
Set the precision used for printing the branch_length floating point numbers of the reference Tree of...
void to_string(Sample const &smp, std::string &output) const
Store the data of a Sample in a string in Jplace format.
Store a Json value of any kind.
Manage a set of Pqueries along with the PlacementTree where the PqueryPlacements are placed on...
void to_stream(Sample const &smp, std::ostream &os) const
Write a Sample to a stream, using the Jplace format.