Searched refs:format_header (Results 1 – 1 of 1) sorted by relevance
116 string format_header,size_header,colors_header; in ReadPGM() local118 getline(in,format_header); in ReadPGM()120 s << format_header; in ReadPGM()122 s >> format_header >> m_w >> m_h >> m_colors; in ReadPGM()150 if ( format_header == "P5" ) in ReadPGM()152 else if (format_header == "P6" ) in ReadPGM()180 string format_header; in WritePGM() local185 format_header = "P5\n"; in WritePGM()188 format_header = "P6\n"; in WritePGM()196 … out << format_header << "# " << comment << '\n' << m_w << " " << m_h << '\n' << m_colors << '\n'; in WritePGM()