FontXML.h
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #ifndef _FontXML_H_
15 #define _FontXML_H_
16 
17 #include "BaseXML.h"
18 
19 #include "axes/AxesType.h"
20 
21 namespace hippodraw {
22 
23 class FontBase;
24 
30 class MDL_HIPPOPLOT_API FontXML : virtual public BaseXML
31 {
32 
33 private:
34 
36  static FontXML * s_instance;
37 
40  std::string m_family;
41 
44  std::string m_italic;
45 
48  std::string m_size;
49 
52  std::string m_weight;
53 
55  FontXML ( const FontXML & );
56 
57 
58 public:
59 
62  FontXML ( XmlController * controller );
63 
66  void setAttributes ( XmlElement &, const FontBase & );
67 
70  hippodraw::Axes::Type getAxis ( const XmlElement * element,
71  const std::string & tagname );
72 
76  void setAttributes ( const XmlElement * element, FontBase * font );
77 
78 };
79 
80 } // namespace hippodraw
81 
82 #endif // _FontXML_H_
#define MDL_HIPPOPLOT_API
Definition: libhippo.h:36
std::string m_italic
The italic attribute name.
Definition: FontXML.h:44
std::string m_size
The point size attribute name.
Definition: FontXML.h:48
A class that is does XML serialization and deserialization of derived classes of FontBase.
Definition: FontXML.h:30
BaseXML class interface.
A pure virtual base class of XML element wrapper.
Definition: XmlElement.h:30
static FontXML * s_instance
The pointer to the singleton object.
Definition: FontXML.h:36
std::string m_weight
The font weight attribute name.
Definition: FontXML.h:52
A abstract base class for font handling.
Definition: FontBase.h:32
The namespace for axes.
std::string m_family
The family attribute name.
Definition: FontXML.h:40
A base class of XML element controllers.
Definition: BaseXML.h:35
A base class that is the interface between GUI and the XML serialization and deserialization.
Definition: XmlController.h:53
Type
Axes constants.
Definition: AxesType.h:31

Generated for HippoDraw Class Library by doxygen