Changeset 646:d2096011fcda
- Timestamp:
- 05/15/08 20:31:32 (2 years ago)
- Branch:
- default
- Convert:
- svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@713
- Files:
-
- 2 edited
-
include/liblas/lasheader.hpp (modified) (1 diff)
-
src/lasheader.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
include/liblas/lasheader.hpp
r641 r646 293 293 294 294 void AddVLR(LASVLR const& v); 295 LASVLR const& GetVLR(int index) const; 295 LASVLR const& GetVLR(uint32_t index) const; 296 void DeleteVLR(uint32_t index); 296 297 297 298 private: -
src/lasheader.cpp
r641 r646 498 498 { 499 499 m_vlrs.push_back(v); 500 } 501 LASVLR const& LASHeader::GetVLR(int index) const { 500 m_dataRecordLen = m_vlrs.size(); 501 } 502 503 LASVLR const& LASHeader::GetVLR(uint32_t index) const { 502 504 return m_vlrs[index]; 505 } 506 507 void LASHeader::DeleteVLR(uint32_t index) { 508 509 if (index >= m_vlrs.size()) 510 throw std::out_of_range("index is out of range"); 511 512 m_vlrs.erase(m_vlrs.begin() + index); 513 m_dataRecordLen = m_vlrs.size(); 514 503 515 } 504 516 void LASHeader::Init()
Note: See TracChangeset
for help on using the changeset viewer.
