src/linetypes/object.h

changeset 177
f69d53c053df
parent 158
5bd755eaa5a8
child 183
97b591813c8b
equal deleted inserted replaced
176:cd9d6bf6f649 177:f69d53c053df
78 virtual QDataStream& serialize(QDataStream& stream) const; 78 virtual QDataStream& serialize(QDataStream& stream) const;
79 virtual QDataStream& deserialize(QDataStream& stream); 79 virtual QDataStream& deserialize(QDataStream& stream);
80 virtual Type typeIdentifier() const = 0; 80 virtual Type typeIdentifier() const = 0;
81 virtual QString toLDrawCode() const = 0; 81 virtual QString toLDrawCode() const = 0;
82 virtual QString iconName() const; 82 virtual QString iconName() const;
83 virtual QString typeName() const = 0;
83 84
84 protected: 85 protected:
85 template<Property property, typename Function> 86 template<Property property, typename Function>
86 void handle(SetPropertyResult* result, const PropertyKeyValue& pair, Function function); 87 void handle(SetPropertyResult* result, const PropertyKeyValue& pair, Function function);
87 virtual void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair); 88 virtual void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair);
144 class ldraw::Empty : public Object 145 class ldraw::Empty : public Object
145 { 146 {
146 QString textRepresentation() const override; 147 QString textRepresentation() const override;
147 Type typeIdentifier() const override; 148 Type typeIdentifier() const override;
148 QString toLDrawCode() const override; 149 QString toLDrawCode() const override;
150 QString typeName() const override;
149 }; 151 };

mercurial