Changeset 1204

Show
Ignore:
Timestamp:
07/03/09 09:28:59 (13 months ago)
Author:
artem
Message:

+ make shape_io noncopyable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/input/shape/shape_io.hpp

    r628 r1204  
    2121 *****************************************************************************/ 
    2222 
    23 #ifndef SHAPE_IO_HH 
    24 #define SHAPE_IO_HH 
     23#ifndef SHAPE_IO_HPP 
     24#define SHAPE_IO_HPP 
    2525 
     26// mapnik 
    2627#include "dbffile.hpp" 
    2728#include "shapefile.hpp" 
    2829#include "shp_index.hpp" 
     30// boost 
     31#include <boost/utility.hpp> 
    2932 
    3033using mapnik::geometry2d; 
    3134 
    32 struct shape_io 
     35struct shape_io : boost::noncopyable 
    3336{ 
    3437      static const std::string SHP; 
     
    7780      geometry2d * read_polygonm(); 
    7881      geometry2d * read_polygonz(); 
    79    private: 
    80       //void read_record(const shape_record& record); 
    81       // no copying 
    82       shape_io(const shape_io&); 
    83       shape_io& operator=(const shape_io&); 
    8482}; 
    85 #endif                                            //SHAPE_IO_HH 
     83 
     84#endif //SHAPE_IO_HPP