TransformXML.cxx
Go to the documentation of this file.
1 
12 // for truncation warning
13 #ifdef _MSC_VER
14 #include "msdevstudio/MSconfig.h"
15 #endif
16 
17 #include "TransformXML.h"
18 
19 #include "XmlElement.h"
20 
23 
24 #include <cassert>
25 
26 using std::string;
27 
28 namespace hippodraw {
29 
31  : BaseXML ( "Transform", controller )
32 {
33 }
34 
36 {
38  const string & type = transform.name();
39  tag->setAttribute ( m_type, type );
40 
41  return tag;
42 }
43 
45 {
46  string type;
47  bool ok = element->attribute ( m_type, type );
48  assert ( ok );
49 
51  TransformBase * transform = factory->createTransform ( type );
52 
53  return transform;
54 }
55 
56 } // namespace hippodraw
57 

Generated for HippoDraw Class Library by doxygen