Skip to content

Commit

Permalink
tweak it to make it derivation-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgerlek committed Mar 30, 2012
1 parent 99d9dd6 commit db6648f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pdal/drivers/las/Writer.hpp
Expand Up @@ -88,15 +88,15 @@ class PDAL_DLL Writer : public pdal::Writer
virtual boost::property_tree::ptree toPTree() const;

protected:
virtual void writeBufferBegin(PointBuffer const&);

virtual void writeBegin(boost::uint64_t targetNumPointsToWrite);
virtual void writeBufferBegin(PointBuffer const&);
virtual boost::uint32_t writeBuffer(const PointBuffer&);
virtual void writeBufferEnd(PointBuffer const&);
virtual void writeEnd(boost::uint64_t actualNumPointsWritten);

private:
OutputStreamManager m_streamManager;

private:
LasHeader m_lasHeader;
boost::uint32_t m_numPointsWritten;
SummaryData m_summaryData;
Expand Down
6 changes: 6 additions & 0 deletions src/drivers/las/Writer.cpp
Expand Up @@ -274,6 +274,12 @@ void Writer::writeEnd(boost::uint64_t /*actualNumPointsWritten*/)
}


void Writer::writeBufferEnd(PointBuffer const& /*data*/)
{
return;
}


boost::uint32_t Writer::writeBuffer(const PointBuffer& pointBuffer)
{
const Schema& schema = pointBuffer.getSchema();
Expand Down

0 comments on commit db6648f

Please sign in to comment.