ActiveLib
Loading...
Searching...
No Matches
XMLPolyPoint.h
1
6#ifndef ACTIVE_SERIALISE_XML_XML_POLY_POINT
7#define ACTIVE_SERIALISE_XML_XML_POLY_POINT
8
9#include "Active/Serialise/XML/Package/Wrapper/Geometry/XMLPoint.h"
10
11namespace active::geometry {
12
13 class PolyPoint;
14
15}
16
17namespace active::serialise::xml {
18
24 class XMLPolyPoint : public XMLPoint {
25 public:
26
27 // MARK: - Types
28
29 using base = XMLPoint;
30
33
34 // MARK: - Constructor
35
46 XMLPolyPoint(geometry::PolyPoint& point, const utility::String& customTag);
47
48 // MARK: - Functions (const)
49
55 virtual bool fillInventory(Inventory& inventory) const override;
61 virtual Cargo::Unique getCargo(const Inventory::Item& item) const override;
62
63 // MARK: - Functions (mutating)
64
68 virtual void setDefault() override;
69
70 private:
75 geometry::PolyPoint* getPolyPoint() const;
76 };
77
78}
79
80#endif //ACTIVE_SERIALISE_XML_XML_POLY_POINT
Definition PolyPoint.h:24
std::unique_ptr< Cargo > Unique
Unique pointer.
Definition Cargo.h:23
Definition Inventory.h:19
Definition XMLPoint.h:25
XMLPoint(geometry::Point &point)
Definition XMLPoint.cpp:55
Definition XMLPolyPoint.h:24
static utility::String tag
The element tag.
Definition XMLPolyPoint.h:32
virtual bool fillInventory(Inventory &inventory) const override
Definition XMLPolyPoint.cpp:72
XMLPolyPoint(geometry::PolyPoint &point)
Definition XMLPolyPoint.cpp:52
virtual void setDefault() override
Definition XMLPolyPoint.cpp:125
virtual Cargo::Unique getCargo(const Inventory::Item &item) const override
Definition XMLPolyPoint.cpp:94
A Unicode-aware string class.
Definition String.h:51
Definition Anchor2D.h:11
Definition XMLDateTime.h:12
Definition Entry.h:20