| 
| Image *  | serialize_read (const std::string &file_name) override | 
|   | 
| bool  | read_supported () const override | 
|   | Tests whether reading is implemented.  
  | 
|   | 
| bool  | binary () const override | 
|   | Tests whether the file format is binary or ASCII.  
  | 
|   | 
| virtual bool  | serialize_write (const std::string &file_name, const Image *image) | 
|   | writes an image into a file.  
  | 
|   | 
| virtual Image *  | serialize_read (std::istream &stream) | 
|   | reads an image from a stream.  
  | 
|   | 
| virtual bool  | serialize_write (std::ostream &stream, const Image *image) | 
|   | writes an image into a stream.  
  | 
|   | 
| virtual bool  | streams_supported () const | 
|   | Tests whether the functions that use streams are supported.  
  | 
|   | 
| virtual bool  | write_supported () const | 
|   | Tests whether writing is implemented.  
  | 
|   | 
| void  | ref () const | 
|   | Increments the reference count.  
  | 
|   | 
| void  | unref () const | 
|   | Decrements the reference count.  
  | 
|   | 
| bool  | is_shared () const | 
|   | Check if the object is shared.  
  | 
|   | 
| int  | nb_refs () const | 
|   | Gets the number of references that point to this object.  
  | 
|   | 
 | 
| static void  | ref (const Counted *counted) | 
|   | Increments the reference count.  
  | 
|   | 
| static void  | unref (const Counted *counted) | 
|   | Decrements the reference count.  
  | 
|   | 
|   | Counted () | 
|   | Creates a reference counted object.  
  | 
|   | 
| virtual  | ~Counted () | 
|   | Destroys a reference counted object.  
  | 
|   | 
Definition at line 50 of file image_serializer_pgm.h.
 
◆ binary()
  
  
      
        
          | bool GEO::ImageSerializer_pgm::binary  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Tests whether the file format is binary or ASCII. 
It is used to determine whether a stream should be opened in ASCII or binary mode for loading image files. Default implementation in base class returns true. 
- Return values
 - 
  
    | true | if the file format is binary  | 
    | false | if the file format is ASCII  | 
  
   
Reimplemented from GEO::ImageSerializer.
 
 
◆ read_supported()
  
  
      
        
          | bool GEO::ImageSerializer_pgm::read_supported  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Tests whether reading is implemented. 
Some serializers implement only reading or only writing. Default implementation returns false 
- Return values
 - 
  
    | true | if reading is supported  | 
    | false | otherwise  | 
  
   
Reimplemented from GEO::ImageSerializer.
 
 
◆ serialize_read()
  
  
      
        
          | Image * GEO::ImageSerializer_pgm::serialize_read  | 
          ( | 
          const std::string &  | 
          file_name | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
The documentation for this class was generated from the following file: