Go to the documentation of this file.
19 return shape->write(output);
23 return shape.
write(output);
28 input.
read(shape_type, 8);
35 return (s->second)( input );
40 for(
unsigned int i = 0; i <
std::min(shape_type.
size(), shape_type8.
size()); ++i) {
41 shape_type8[i] = shape_type[i];
48 in.
open(filename.
c_str(), std::ifstream::binary);
56 out.
open(filename.
c_str(), std::ifstream::binary);
63 out.
open(filename.
c_str(), std::ifstream::binary);
std::shared_ptr< Shape > ShapePtr
static deserializer_map deserializers_
static ShapePtr fromFile(const std::string &filename)
virtual bool write(std::ostream &output) const
write, serialise the shape
static bool serialize(ShapeConstPtr shape, std::ostream &output)
static void toFile(ShapeConstPtr shape, const std::string &filename)
std::map< std::string, deserialization_method > deserializer_map
static ShapePtr deserialize(std::istream &input)
static void registerDeserializer()
A geometric description of a shape.