Skip to content

Commit

Permalink
address PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Jul 23, 2020
1 parent ff0cf7e commit 923ad17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions filters/HeadFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ void HeadFilter::addArgs(ProgramArgs& args)
"to skip from the beginning.", m_invert, false);
}

void HeadFilter::ready(PointTableRef table)
{
m_index = 0;
}

bool HeadFilter::processOne(PointRef& point)
{

Expand Down
4 changes: 3 additions & 1 deletion filters/HeadFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace pdal
class PDAL_DLL HeadFilter : public Filter, public Streamable
{
public:
HeadFilter() : m_index(0)
HeadFilter()
{}
HeadFilter& operator=(const HeadFilter&) = delete;
HeadFilter(const HeadFilter&) = delete;
Expand All @@ -58,6 +58,8 @@ class PDAL_DLL HeadFilter : public Filter, public Streamable
virtual void addArgs(ProgramArgs& args);
virtual bool processOne(PointRef& point);
virtual PointViewSet run(PointViewPtr view);
virtual void ready(PointTableRef table);

};

} // namespace pdal

0 comments on commit 923ad17

Please sign in to comment.