Changeset 1579:94ea2e8f3d8c
- Timestamp:
- 02/13/10 08:36:41 (6 months ago)
- Branch:
- default
- Files:
-
- 4 edited
-
include/liblas/lasreader.hpp (modified) (2 diffs)
-
include/liblas/laswriter.hpp (modified) (2 diffs)
-
src/lasreader.cpp (modified) (3 diffs)
-
src/laswriter.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
include/liblas/lasreader.hpp
r1577 r1579 143 143 void Init(); // throws on error 144 144 145 const std::auto_ptr< detail::ReaderImpl> m_pimpl;145 const std::auto_ptr<ReaderI> m_pimpl; 146 146 LASHeader m_header; 147 147 LASPoint* m_point; … … 151 151 // read from the istream 152 152 bool bCustomHeader; 153 154 std::istream& m_ifs; 153 155 154 156 }; -
include/liblas/laswriter.hpp
r1577 r1579 47 47 #include <liblas/laspoint.hpp> 48 48 #include <liblas/detail/fwd.hpp> 49 #include <liblas/interfaces.hpp> 49 50 50 51 // std … … 99 100 LASWriter& operator=(LASWriter const& rhs); 100 101 101 const std::auto_ptr< detail::WriterImpl> m_pimpl;102 const std::auto_ptr<WriterI> m_pimpl; 102 103 103 104 LASHeader m_header; 104 105 detail::PointRecord m_record; 106 std::ostream& m_ofs; 107 105 108 }; 106 109 -
src/lasreader.cpp
r1568 r1579 61 61 m_point(0), 62 62 m_empty_point(new LASPoint()), 63 bCustomHeader(false) 63 bCustomHeader(false), 64 m_ifs(ifs) 64 65 { 65 66 Init(); … … 70 71 m_point(0), 71 72 m_empty_point(new LASPoint()), 72 bCustomHeader(false) 73 bCustomHeader(false), 74 m_ifs(ifs) 73 75 74 76 { … … 164 166 std::istream& LASReader::GetStream() const 165 167 { 166 return m_ pimpl->GetStream();168 return m_ifs; 167 169 } 168 170 -
src/laswriter.cpp
r1573 r1579 55 55 56 56 LASWriter::LASWriter(std::ostream& ofs, LASHeader const& header) : 57 m_pimpl(detail::WriterFactory::Create(ofs, header)), m_header(header) 57 m_pimpl(detail::WriterFactory::Create(ofs, header)), m_header(header), 58 m_ofs(ofs) 58 59 { 59 60 m_pimpl->WriteHeader(m_header); … … 86 87 std::ostream& LASWriter::GetStream() const 87 88 { 88 return m_ pimpl->GetStream();89 return m_ofs; 89 90 } 90 91
Note: See TracChangeset
for help on using the changeset viewer.
