liblas Namespace Reference

Namespace grouping all elements of libLAS public interface. More...


Classes

class  invalid_point_data
 Exception reporting invalid point data. More...
class  guid
 Definition of Globally Unique Identifier type. More...
class  reader_iterator
 Input iterator associated with liblas::LASReader. More...
class  writer_iterator
 Output iterator associated with liblas::LASWriter. More...
class  LASError
 Definition of error notification used on the level of C API. More...
class  LASFile
class  LASHeader
 Definition of public header block. More...
class  LASPoint
 Definition of point data record. More...
class  LASReader
class  LASVLR
 Representation of variable-length record data. More...
class  LASWriter

Typedefs

typedef reader_iterator< LASPointlasreader_iterator
 Public specialization of LASReader input iterator for liblas::LASPoint type.
typedef writer_iterator< LASPointlaswriter_iterator
 Public specialization of LASWriter output iterator for liblas::LASPoint type.

Enumerations

enum  LASFileVersion { eLASVersion10 = 1 * 100000 + 0, eLASVersion11 = 1 * 100000 + 1, eLASVersion20 = 2 * 100000 + 0 }
 Version numbers of the ASPRS LAS Specification. More...

Functions

std::ostream & operator<< (std::ostream &os, guid const &g)
std::istream & operator>> (std::istream &is, guid &g)
template<typename T>
bool operator== (reader_iterator< T > const &lhs, reader_iterator< T > const &rhs)
 Equality operator implemented in terms of reader_iterator::equal.
template<typename T>
bool operator!= (reader_iterator< T > const &lhs, reader_iterator< T > const &rhs)
 Inequality operator implemented in terms of reader_iterator::equal.
bool operator== (LASPoint const &lhs, LASPoint const &rhs)
bool operator!= (LASPoint const &lhs, LASPoint const &rhs)
bool operator== (LASVLR const &lhs, LASVLR const &rhs)
 Equality operator.
bool operator!= (LASVLR const &lhs, LASVLR const &rhs)
 Inequality operator.
bool Open (std::ifstream &ifs, std::string const &filename)
 Open file to read in binary mode.
bool Create (std::ofstream &ofs, std::string const &filename)
 Create file and open to write in binary mode.

Detailed Description

Namespace grouping all elements of libLAS public interface.

Note:
User's may notice there is namespace detail nested in the liblas. The detail should be considered as private namespace dedicated for implementation details, so libLAS are not supposed to access it directly, nor included headers from the detail subdirectory of liblas include folder.


Typedef Documentation

Public specialization of LASReader input iterator for liblas::LASPoint type.

Definition at line 214 of file iterator.hpp.

Public specialization of LASWriter output iterator for liblas::LASPoint type.

Definition at line 217 of file iterator.hpp.


Enumeration Type Documentation

Version numbers of the ASPRS LAS Specification.

Numerical representation of versions is calculated according to following formula: major * 100000 + minor

Enumerator:
eLASVersion10  LAS Format 1.0.
eLASVersion11  LAS Format 1.1.
eLASVersion20  LAS Format 2.0.

Definition at line 65 of file liblas.hpp.


Function Documentation

bool liblas::Create ( std::ofstream &  ofs,
std::string const &  filename 
) [inline]

Create file and open to write in binary mode.

The output file is also attached to output stream.

Parameters:
ofs - reference to output file stream to which created file is attached
filename - name of file to open
Returns:
true if file has been create with success, false otherwise
Exceptions:
No throw

Definition at line 94 of file liblas.hpp.

bool liblas::Open ( std::ifstream &  ifs,
std::string const &  filename 
) [inline]

Open file to read in binary mode.

The input file is also attached to input stream.

Parameters:
ifs - reference to input file stream to which opened file is attached
filename - name of file to open
Returns:
true if file has been opened with success, false otherwise
Exceptions:
No throw

Definition at line 80 of file liblas.hpp.

bool liblas::operator!= ( LASVLR const &  lhs,
LASVLR const &  rhs 
) [inline]

Inequality operator.

Implemented in terms of LASRecordHeader::equal member function.

Exceptions:
No throw

Definition at line 149 of file lasrecordheader.hpp.

bool liblas::operator!= ( LASPoint const &  lhs,
LASPoint const &  rhs 
) [inline]

Todo:
To be documented.

Definition at line 176 of file laspoint.hpp.

template<typename T>
bool liblas::operator!= ( reader_iterator< T > const &  lhs,
reader_iterator< T > const &  rhs 
) [inline]

Inequality operator implemented in terms of reader_iterator::equal.

Definition at line 144 of file iterator.hpp.

std::ostream& liblas::operator<< ( std::ostream &  os,
guid const &  g 
) [inline]

Definition at line 480 of file guid.hpp.

References liblas::guid::data_, liblas::guid::get_showbraces(), and liblas::guid::static_size.

Here is the call graph for this function:

bool liblas::operator== ( LASVLR const &  lhs,
LASVLR const &  rhs 
) [inline]

Equality operator.

Implemented in terms of LASVLR::equal member function.

Exceptions:
No throw

Definition at line 141 of file lasrecordheader.hpp.

References liblas::LASVLR::equal().

Here is the call graph for this function:

bool liblas::operator== ( LASPoint const &  lhs,
LASPoint const &  rhs 
) [inline]

Todo:
To be documented.

Definition at line 170 of file laspoint.hpp.

References liblas::LASPoint::equal().

Here is the call graph for this function:

template<typename T>
bool liblas::operator== ( reader_iterator< T > const &  lhs,
reader_iterator< T > const &  rhs 
) [inline]

Equality operator implemented in terms of reader_iterator::equal.

Definition at line 137 of file iterator.hpp.

References liblas::reader_iterator< T >::equal().

Here is the call graph for this function:

std::istream& liblas::operator>> ( std::istream &  is,
guid &  g 
) [inline]

Definition at line 522 of file guid.hpp.

References liblas::guid::data_, and liblas::guid::static_size.