src/linetypes/metacommand.cpp

changeset 134
f77d2230e87c
parent 132
488d0ba6070b
child 141
185eb297dc1e
equal deleted inserted replaced
132:488d0ba6070b 134:f77d2230e87c
29 ldraw::Object::Type ldraw::MetaCommand::typeIdentifier() const 29 ldraw::Object::Type ldraw::MetaCommand::typeIdentifier() const
30 { 30 {
31 return Type::MetaCommand; 31 return Type::MetaCommand;
32 } 32 }
33 33
34 /**
35 * @brief @overload ldraw::Object::serialize
36 * @param stream
37 * @return stream
38 */
39 QDataStream& ldraw::MetaCommand::serialize(QDataStream& stream) const
40 {
41 return ldraw::Object::serialize(stream) << this->storedText;
42 }
43
44 /**
45 * @brief @overload ldraw::Object::deserialize
46 * @param stream
47 * @return stream
48 */
49 QDataStream& ldraw::MetaCommand::deserialize(QDataStream& stream)
50 {
51 return ldraw::Object::deserialize(stream) >> this->storedText;
52 }
53

mercurial