43#ifndef LIBLAS_LASVARIABLERECORD_HPP_INCLUDED
44#define LIBLAS_LASVARIABLERECORD_HPP_INCLUDED
46#include <liblas/detail/private_utility.hpp>
47#include <liblas/external/property_tree/ptree.hpp>
50#include <boost/array.hpp>
117 void SetData(std::vector<uint8_t>
const& data);
136 std::vector<uint8_t> m_data;
137 boost::array<char, 32> m_description;
138 boost::array<char, 16> m_user_id;
140 uint16_t m_record_id;
141 uint16_t m_record_size;
149 return lhs.
equal(rhs);
157 return (!(lhs == rhs));
Representation of variable-length record data.
Definition variablerecord.hpp:60
void SetData(std::vector< uint8_t > const &data)
std::size_t GetTotalSize() const
Get the total size of the VLR in bytes.
void SetReserved(uint16_t data)
VariableRecord(VariableRecord const &other)
Copy constructor.
uint16_t GetReserved() const
Get record signature (LAS 1.0) or reserved bytes (LAS 1.1).
VariableRecord & operator=(VariableRecord const &rhs)
Assignment operator.
std::string GetDescription(bool pad) const
Get text description of data in the record.
std::string GetUserId(bool pad) const
Get identifier of user which created the record.
liblas::property_tree::ptree GetPTree() const
void SetRecordLength(uint16_t length)
uint16_t GetRecordId() const
Get identifier of record.
void SetRecordId(uint16_t id)
std::vector< uint8_t > const & GetData() const
Get the data for this VLR.
uint16_t GetRecordLength() const
Get record length after the header.
void SetUserId(std::string const &id)
@ eUserIdSize
Definition variablerecord.hpp:130
@ eDescriptionSize
Definition variablerecord.hpp:131
void SetDescription(std::string const &text)
bool equal(VariableRecord const &other) const
Compare actual header object against the other.
VariableRecord()
Default constructor.
#define LAS_DLL
Definition export.hpp:58
Namespace grouping all elements of libLAS public interface.
Definition bounds.hpp:60
bool operator!=(Classification const &lhs, Classification const &rhs)
Not-equal-to operator implemented in terms of Classification::equal.
Definition classification.hpp:232
std::ostream & operator<<(std::ostream &os, Classification const &cls)
The output stream operator is based on std::bitset<N>::operator<<.
Definition classification.hpp:247
bool operator==(Classification const &lhs, Classification const &rhs)
Equal-to operator implemented in terms of Classification::equal.
Definition classification.hpp:226