Point Cloud Library (PCL)  1.7.1
PCLPointField.h
1 #ifndef PCL_SENSOR_MSGS_MESSAGE_POINTFIELD_H
2 #define PCL_SENSOR_MSGS_MESSAGE_POINTFIELD_H
3 
4 #ifdef USE_ROS
5  #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
6 #endif
7 
8 #include <string>
9 #include <vector>
10 #include <ostream>
11 #include <boost/shared_ptr.hpp>
12 #include <pcl/pcl_macros.h>
13 
14 namespace pcl
15 {
17  {
18  PCLPointField () : name (), offset (0), datatype (0), count (0)
19  {}
20 
21  std::string name;
22 
23  pcl::uint32_t offset;
24  pcl::uint8_t datatype;
25  pcl::uint32_t count;
26 
27  enum PointFieldTypes { INT8 = 1,
28  UINT8 = 2,
29  INT16 = 3,
30  UINT16 = 4,
31  INT32 = 5,
32  UINT32 = 6,
33  FLOAT32 = 7,
34  FLOAT64 = 8 };
35 
36  public:
37  typedef boost::shared_ptr< ::pcl::PCLPointField> Ptr;
38  typedef boost::shared_ptr< ::pcl::PCLPointField const> ConstPtr;
39  }; // struct PCLPointField
40 
41  typedef boost::shared_ptr< ::pcl::PCLPointField> PCLPointFieldPtr;
42  typedef boost::shared_ptr< ::pcl::PCLPointField const> PCLPointFieldConstPtr;
43 
44  inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLPointField & v)
45  {
46  s << "name: ";
47  s << " " << v.name << std::endl;
48  s << "offset: ";
49  s << " " << v.offset << std::endl;
50  s << "datatype: ";
51  s << " " << v.datatype << std::endl;
52  s << "count: ";
53  s << " " << v.count << std::endl;
54  return (s);
55  }
56 } // namespace pcl
57 
58 #endif // PCL_SENSOR_MSGS_MESSAGE_POINTFIELD_H
59