pmt: Read/Write

pmt.is_eof_object(swig_int_ptr obj) → bool

return true if obj is the EOF object, otherwise return false.

pmt.read(std::istream & port) → swig_int_ptr

read converts external representations of pmt objects into the objects themselves. Read returns the next object parsable from the given input port, updating port to point to the first character past the end of the external representation of the object.

If an end of file is encountered in the input before any characters are found that can begin an object, then an end of file object is returned. The port remains open, and further attempts to read will also return an end of file object. If an end of file is encountered after the beginning of an object’s external representation, but the external representation is incomplete and therefore not parsable, an error is signaled.

pmt.write(swig_int_ptr obj, std::ostream & port)

Write a written representation of to the given .

pmt.write_string(swig_int_ptr obj) → std::string

Return a string representation of . This is the same output as would be generated by pmt::write.

Previous topic

pmt: Message Accepter

Next topic

pmt: BLOBs

This Page