]> git.tdb.fi Git - r2c2.git/blob - source/libr2c2/objecttype.cpp
09b25610ef929e57d085a6f00ebe7f1edd5d7611
[r2c2.git] / source / libr2c2 / objecttype.cpp
1 #include "objecttype.h"
2
3 using namespace Msp;
4
5 namespace R2C2 {
6
7 ObjectType::ObjectType(const ArticleNumber &an):
8         art_nr(an),
9         shape(0)
10 { }
11
12 ObjectType::~ObjectType()
13 {
14         delete shape;
15 }
16
17
18 ObjectType::Loader::Loader(ObjectType &ot):
19         DataFile::ObjectLoader<ObjectType>(ot)
20 {
21         add("description", &ObjectType::description);
22         add("name",        &ObjectType::name);
23 }
24
25 } // namespace R2C2