40 #ifndef PCL_IO_PLY_IO_OPERATORS_H
41 #define PCL_IO_PLY_IO_OPERATORS_H
58 namespace io_operators
66 if (tmp <= std::numeric_limits<int8>::max ())
67 value =
static_cast<int8> (tmp);
69 istream.setstate (std::ios_base::failbit);
79 if (tmp <= std::numeric_limits<uint8>::max ())
80 value =
static_cast<uint8> (tmp);
82 istream.setstate (std::ios_base::failbit);
89 return (ostream <<
static_cast<int16> (value));
94 return (ostream <<
static_cast<uint16> (value));
102 #endif // PLY_IO_OPERATORS_H