| 62 | class XMLSchema; |
| 63 | |
| 64 | struct XMLDim |
| 65 | { |
| 66 | friend class XMLSchema; |
| 67 | |
| 68 | public: |
| 69 | XMLDim() : m_min(0.0), m_max(0.0) |
| 70 | {} |
| 71 | XMLDim(const DimType& dim, const std::string& name) : |
| 72 | m_name(name), m_min(0.0), m_max(0.0), m_dimType(dim) |
| 73 | {} |
| 74 | |
| 75 | std::string m_name; |
| 76 | std::string m_description; |
| 77 | uint32_t m_position; |
| 78 | double m_min; |
| 79 | double m_max; |
| 80 | DimType m_dimType; |
| 81 | }; |
| 82 | typedef std::vector<XMLDim> XMLDimList; |
| 83 | inline bool operator < (const XMLDim& d1, const XMLDim& d2) |
| 84 | { return d1.m_position < d2.m_position; } |