99 bool read_stream_type(
const std::string& word,
Stream_type& type);
100 bool read_scalar(
const std::string& word,
Scalar_type& type);
103 bool read_ascii_value(
const Scalar_type& type,
double& value);
104 bool read_binary_value(
const Scalar_type& type,
double& value);
105 void read(
char* ptr,
size_t n);
108 inline bool read_value(
const Scalar_type& type,
double& value) {
110 return read_ascii_value(type, value);
112 return read_binary_value(type, value);
116 inline bool read_size(
const Scalar_type& type,
size_t& size) {
118 if (!read_value(type, value))
120 size = (size_t)value;
125 void read_ascii_string(
char* str);
205 return write_ascii_object(elem, obj);
207 return write_binary_object(elem, obj);
212 bool write_ascii_value(
const Scalar_type& type,
const double& value);
213 bool write_binary_value(
const Scalar_type& type,
const double& value);
214 void write(
char* ptr,
size_t n);
223 #endif // __PLY_IO_H__