30 #ifndef __CLAW_XBM_HPP__
31 #define __CLAW_XBM_HPP__
61 void load( std::istream& f );
64 void read_from_file( std::istream& f );
66 void read_size( std::istream& f );
67 unsigned int read_dim(
const std::string& line )
const;
68 unsigned int read_bits_per_entry( std::istream& f )
const;
69 void read_name( std::istream& f );
70 void read_pixels( std::istream& f,
unsigned int bpe )
const;
73 ( std::istream& f, std::string& line,
char endchar )
const;
75 ( std::istream& f, std::string& line,
char endchar )
const;
125 void save_bits( std::ostream& f )
const;
129 const image& m_image;
134 xbm(
unsigned int w,
unsigned int h );
136 xbm( std::istream& f );
139 void save( std::ostream& os )
const;
141 void set_name(
const std::string& name );
155 #endif // __CLAW_XBM_HPP__