Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
pcl::io::ply::ply_parser Class Reference

#include <ply_parser.h>

List of all members.

Classes

struct  element
struct  list_property
struct  list_property_begin_callback_type
struct  list_property_definition_callback_type
class  list_property_definition_callbacks_type
struct  list_property_element_callback_type
struct  list_property_end_callback_type
struct  property
struct  scalar_property
struct  scalar_property_callback_type
struct  scalar_property_definition_callback_type
class  scalar_property_definition_callbacks_type

Public Types

typedef boost::function< void()> begin_element_callback_type
typedef boost::function< void(const
std::string &)> 
comment_callback_type
typedef boost::tuple
< begin_element_callback_type,
end_element_callback_type
element_callbacks_type
typedef boost::function
< element_callbacks_type(const
std::string &, std::size_t)> 
element_definition_callback_type
typedef boost::function< void()> end_element_callback_type
typedef boost::function< bool()> end_header_callback_type
typedef boost::function< void(std::size_t,
const std::string &)> 
error_callback_type
enum  flags
typedef int flags_type
typedef boost::function< void(format_type,
const std::string &)> 
format_callback_type
typedef boost::function< void(std::size_t,
const std::string &)> 
info_callback_type
typedef boost::function< void()> magic_callback_type
typedef boost::function< void(const
std::string &)> 
obj_info_callback_type
typedef boost::mpl::vector
< int8, int16, int32, uint8,
uint16, uint32, float32,
float64
scalar_types
typedef boost::mpl::vector
< uint8, uint16, uint32
size_types
typedef boost::function< void(std::size_t,
const std::string &)> 
warning_callback_type

Public Member Functions

void comment_callback (const comment_callback_type &comment_callback)
void element_definition_callback (const element_definition_callback_type &element_definition_callback)
void end_header_callback (const end_header_callback_type &end_header_callback)
void error_callback (const error_callback_type &error_callback)
void format_callback (const format_callback_type &format_callback)
void info_callback (const info_callback_type &info_callback)
void list_property_definition_callbacks (const list_property_definition_callbacks_type &list_property_definition_callbacks)
void magic_callback (const magic_callback_type &magic_callback)
void obj_info_callback (const obj_info_callback_type &obj_info_callback)
bool parse (const std::string &filename)
 ply_parser (flags_type flags=0)
void scalar_property_definition_callbacks (const scalar_property_definition_callbacks_type &scalar_property_definition_callbacks)
void warning_callback (const warning_callback_type &warning_callback)

Private Member Functions

template<typename SizeType , typename ScalarType >
bool parse_list_property (format_type format, std::istream &istream, const typename list_property_begin_callback_type< SizeType, ScalarType >::type &list_property_begin_callback, const typename list_property_element_callback_type< SizeType, ScalarType >::type &list_property_element_callback, const typename list_property_end_callback_type< SizeType, ScalarType >::type &list_property_end_callback)
template<typename SizeType , typename ScalarType >
void parse_list_property_definition (const std::string &property_name)
template<typename ScalarType >
bool parse_scalar_property (format_type format, std::istream &istream, const typename scalar_property_callback_type< ScalarType >::type &scalar_property_callback)
template<typename ScalarType >
void parse_scalar_property_definition (const std::string &property_name)

Private Attributes

comment_callback_type comment_callback_
elementcurrent_element_
element_definition_callback_type element_definition_callbacks_
end_header_callback_type end_header_callback_
error_callback_type error_callback_
flags_type flags_
format_callback_type format_callback_
info_callback_type info_callback_
std::size_t line_number_
list_property_definition_callbacks_type list_property_definition_callbacks_
magic_callback_type magic_callback_
obj_info_callback_type obj_info_callback_
scalar_property_definition_callbacks_type scalar_property_definition_callbacks_
warning_callback_type warning_callback_

Friends

template<typename ScalarType >
scalar_property_definition_callback_type
< ScalarType >::type & 
at (scalar_property_definition_callbacks_type &scalar_property_definition_callbacks)
template<typename ScalarType >
const
scalar_property_definition_callback_type
< ScalarType >::type & 
at (const scalar_property_definition_callbacks_type &scalar_property_definition_callbacks)
template<typename SizeType , typename ScalarType >
list_property_definition_callback_type
< SizeType, ScalarType >::type & 
at (list_property_definition_callbacks_type &list_property_definition_callbacks)
template<typename SizeType , typename ScalarType >
const
list_property_definition_callback_type
< SizeType, ScalarType >::type & 
at (const list_property_definition_callbacks_type &list_property_definition_callbacks)

Detailed Description

Class ply_parser parses a PLY file and generates appropriate atomic parsers for the body.

Author:
Ares Lagae as part of libply, Nizar Sallem Ported with agreement from the author under the terms of the BSD license.

Definition at line 82 of file ply_parser.h.


Member Typedef Documentation

Definition at line 96 of file ply_parser.h.

typedef boost::function<void (const std::string&)> pcl::io::ply::ply_parser::comment_callback_type

Definition at line 92 of file ply_parser.h.

Definition at line 98 of file ply_parser.h.

Definition at line 99 of file ply_parser.h.

typedef boost::function<void ()> pcl::io::ply::ply_parser::end_element_callback_type

Definition at line 97 of file ply_parser.h.

typedef boost::function<bool ()> pcl::io::ply::ply_parser::end_header_callback_type

Definition at line 94 of file ply_parser.h.

typedef boost::function<void (std::size_t, const std::string&)> pcl::io::ply::ply_parser::error_callback_type

Definition at line 88 of file ply_parser.h.

Definition at line 304 of file ply_parser.h.

Definition at line 91 of file ply_parser.h.

typedef boost::function<void (std::size_t, const std::string&)> pcl::io::ply::ply_parser::info_callback_type

Definition at line 86 of file ply_parser.h.

typedef boost::function<void ()> pcl::io::ply::ply_parser::magic_callback_type

Definition at line 90 of file ply_parser.h.

typedef boost::function<void (const std::string&)> pcl::io::ply::ply_parser::obj_info_callback_type

Definition at line 93 of file ply_parser.h.

Definition at line 114 of file ply_parser.h.

Definition at line 207 of file ply_parser.h.

typedef boost::function<void (std::size_t, const std::string&)> pcl::io::ply::ply_parser::warning_callback_type

Definition at line 87 of file ply_parser.h.


Member Enumeration Documentation

Definition at line 305 of file ply_parser.h.


Constructor & Destructor Documentation

Definition at line 307 of file ply_parser.h.


Member Function Documentation

void pcl::io::ply::ply_parser::comment_callback ( const comment_callback_type comment_callback) [inline]

Definition at line 481 of file ply_parser.h.

void pcl::io::ply::ply_parser::element_definition_callback ( const element_definition_callback_type element_definition_callback) [inline]

Definition at line 466 of file ply_parser.h.

void pcl::io::ply::ply_parser::end_header_callback ( const end_header_callback_type end_header_callback) [inline]

Definition at line 491 of file ply_parser.h.

void pcl::io::ply::ply_parser::error_callback ( const error_callback_type error_callback) [inline]

Definition at line 451 of file ply_parser.h.

void pcl::io::ply::ply_parser::format_callback ( const format_callback_type format_callback) [inline]

Definition at line 461 of file ply_parser.h.

void pcl::io::ply::ply_parser::info_callback ( const info_callback_type info_callback) [inline]

Definition at line 441 of file ply_parser.h.

Definition at line 476 of file ply_parser.h.

void pcl::io::ply::ply_parser::magic_callback ( const magic_callback_type magic_callback) [inline]

Definition at line 456 of file ply_parser.h.

void pcl::io::ply::ply_parser::obj_info_callback ( const obj_info_callback_type obj_info_callback) [inline]

Definition at line 486 of file ply_parser.h.

bool pcl::io::ply::ply_parser::parse ( const std::string filename)

Definition at line 43 of file ply_parser.cpp.

template<typename SizeType , typename ScalarType >
bool pcl::io::ply::ply_parser::parse_list_property ( format_type  format,
std::istream &  istream,
const typename list_property_begin_callback_type< SizeType, ScalarType >::type &  list_property_begin_callback,
const typename list_property_element_callback_type< SizeType, ScalarType >::type &  list_property_element_callback,
const typename list_property_end_callback_type< SizeType, ScalarType >::type &  list_property_end_callback 
) [inline, private]

Definition at line 597 of file ply_parser.h.

template<typename SizeType , typename ScalarType >
void pcl::io::ply::ply_parser::parse_list_property_definition ( const std::string property_name) [inline, private]

Definition at line 520 of file ply_parser.h.

template<typename ScalarType >
bool pcl::io::ply::ply_parser::parse_scalar_property ( format_type  format,
std::istream &  istream,
const typename scalar_property_callback_type< ScalarType >::type &  scalar_property_callback 
) [inline, private]

Definition at line 554 of file ply_parser.h.

template<typename ScalarType >
void pcl::io::ply::ply_parser::parse_scalar_property_definition ( const std::string property_name) [inline, private]

Definition at line 497 of file ply_parser.h.

Definition at line 471 of file ply_parser.h.

void pcl::io::ply::ply_parser::warning_callback ( const warning_callback_type warning_callback) [inline]

Definition at line 446 of file ply_parser.h.


Friends And Related Function Documentation

template<typename ScalarType >
scalar_property_definition_callback_type<ScalarType>::type& at ( scalar_property_definition_callbacks_type scalar_property_definition_callbacks) [friend]

Definition at line 162 of file ply_parser.h.

template<typename ScalarType >
const scalar_property_definition_callback_type<ScalarType>::type& at ( const scalar_property_definition_callbacks_type scalar_property_definition_callbacks) [friend]

Definition at line 170 of file ply_parser.h.

template<typename SizeType , typename ScalarType >
list_property_definition_callback_type<SizeType, ScalarType>::type& at ( list_property_definition_callbacks_type list_property_definition_callbacks) [friend]

Definition at line 258 of file ply_parser.h.

template<typename SizeType , typename ScalarType >
const list_property_definition_callback_type<SizeType, ScalarType>::type& at ( const list_property_definition_callbacks_type list_property_definition_callbacks) [friend]

Definition at line 265 of file ply_parser.h.


Member Data Documentation

Definition at line 406 of file ply_parser.h.

Definition at line 429 of file ply_parser.h.

Definition at line 403 of file ply_parser.h.

Definition at line 408 of file ply_parser.h.

Definition at line 399 of file ply_parser.h.

Definition at line 395 of file ply_parser.h.

Definition at line 402 of file ply_parser.h.

Definition at line 397 of file ply_parser.h.

Definition at line 428 of file ply_parser.h.

Definition at line 405 of file ply_parser.h.

Definition at line 401 of file ply_parser.h.

Definition at line 407 of file ply_parser.h.

Definition at line 404 of file ply_parser.h.

Definition at line 398 of file ply_parser.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:44:11