libLAS API Reference (svn-trunk)
liblas::VariableRecord Class Reference

Representation of variable-length record data. More...

#include <variablerecord.hpp>

Collaboration diagram for liblas::VariableRecord:
Collaboration graph

Public Types

enum  { eUserIdSize = 16 , eDescriptionSize = 32 }

Public Member Functions

 VariableRecord ()
 Default constructor.
 VariableRecord (VariableRecord const &other)
 Copy constructor.
 ~VariableRecord ()
VariableRecord & operator= (VariableRecord const &rhs)
 Assignment operator.
uint16_t GetReserved () const
 Get record signature (LAS 1.0) or reserved bytes (LAS 1.1).
void SetReserved (uint16_t data)
std::string GetUserId (bool pad) const
 Get identifier of user which created the record.
void SetUserId (std::string const &id)
uint16_t GetRecordId () const
 Get identifier of record.
void SetRecordId (uint16_t id)
uint16_t GetRecordLength () const
 Get record length after the header.
void SetRecordLength (uint16_t length)
std::string GetDescription (bool pad) const
 Get text description of data in the record.
void SetDescription (std::string const &text)
std::vector< uint8_t > const & GetData () const
 Get the data for this VLR.
void SetData (std::vector< uint8_t > const &data)
bool equal (VariableRecord const &other) const
 Compare actual header object against the other.
std::size_t GetTotalSize () const
 Get the total size of the VLR in bytes.
liblas::property_tree::ptree GetPTree () const

Detailed Description

Representation of variable-length record data.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
eUserIdSize 
eDescriptionSize 

Constructor & Destructor Documentation

◆ VariableRecord() [1/2]

liblas::VariableRecord::VariableRecord ( )

Default constructor.

Zero-initialization of record data.

Exceptions
Nothrow

Referenced by equal(), operator=(), and VariableRecord().

Here is the caller graph for this function:

◆ VariableRecord() [2/2]

liblas::VariableRecord::VariableRecord ( VariableRecord const & other)

Copy constructor.

Construction of new record object as a copy of existing one.

Exceptions
Nothrow

References VariableRecord().

Here is the call graph for this function:

◆ ~VariableRecord()

liblas::VariableRecord::~VariableRecord ( )

Member Function Documentation

◆ equal()

bool liblas::VariableRecord::equal ( VariableRecord const & other) const

Compare actual header object against the other.

Exceptions
Nothrow

References VariableRecord().

Referenced by liblas::operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetData()

std::vector< uint8_t > const & liblas::VariableRecord::GetData ( ) const

Get the data for this VLR.

◆ GetDescription()

std::string liblas::VariableRecord::GetDescription ( bool pad) const

Get text description of data in the record.

The character data is up to 32 bytes long.

Exceptions
Nothrow

◆ GetPTree()

liblas::property_tree::ptree liblas::VariableRecord::GetPTree ( ) const

◆ GetRecordId()

uint16_t liblas::VariableRecord::GetRecordId ( ) const

Get identifier of record.

The record ID is closely related to the user ID.

Exceptions
Nothrow

◆ GetRecordLength()

uint16_t liblas::VariableRecord::GetRecordLength ( ) const

Get record length after the header.

Exceptions
Nothrow

◆ GetReserved()

uint16_t liblas::VariableRecord::GetReserved ( ) const

Get record signature (LAS 1.0) or reserved bytes (LAS 1.1).

Exceptions
Nothrow

◆ GetTotalSize()

std::size_t liblas::VariableRecord::GetTotalSize ( ) const

Get the total size of the VLR in bytes.

◆ GetUserId()

std::string liblas::VariableRecord::GetUserId ( bool pad) const

Get identifier of user which created the record.

The character data is up to 16 bytes long.

Exceptions
Nothrow

◆ operator=()

VariableRecord & liblas::VariableRecord::operator= ( VariableRecord const & rhs)

Assignment operator.

Construction and initializition of record object by assignment of another one.

Exceptions
Nothrow

References VariableRecord().

Here is the call graph for this function:

◆ SetData()

void liblas::VariableRecord::SetData ( std::vector< uint8_t > const & data)

◆ SetDescription()

void liblas::VariableRecord::SetDescription ( std::string const & text)

◆ SetRecordId()

void liblas::VariableRecord::SetRecordId ( uint16_t id)

◆ SetRecordLength()

void liblas::VariableRecord::SetRecordLength ( uint16_t length)

◆ SetReserved()

void liblas::VariableRecord::SetReserved ( uint16_t data)

◆ SetUserId()

void liblas::VariableRecord::SetUserId ( std::string const & id)

The documentation for this class was generated from the following file: