#ifndef _ALIGNMENT_IO_H_ #define _ALIGNMENT_IO_H_ #include #include #include #include "array2d.h" struct AlignmentIO { enum AlignmentType { kNONE = 0, kTRANSLATION = 1, kTRANSLITERATION = 2 }; static boost::shared_ptr > ReadPharaohAlignmentGrid(const std::string& al); static void SerializePharaohFormat(const Array2D& alignment, std::ostream* out); static void SerializeTypedAlignment(const Array2D& alignment, std::ostream* out); }; inline std::ostream& operator<<(std::ostream& os, const Array2D& m) { os << ' '; for (int j=0; j