/* * © Copyright 2014 – Urheberrechtshinweis * Alle Rechte vorbehalten / All Rights Reserved * * Programmcode ist urheberrechtlich geschuetzt. * Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner. * Keine Verwendung ohne explizite Genehmigung. * (vgl. § 106 ff UrhG / § 97 UrhG) */ #ifndef WIFIMODELFACTORY_H #define WIFIMODELFACTORY_H #include "WiFiModel.h" #include "../../../floorplan/v2/Floorplan.h" /** * this class can instantiate WiFiModels based on serialized XML files */ class WiFiModelFactory { private: static constexpr const char* name = "WifiModelFac"; Floorplan::IndoorMap* map; public: /** ctor. needs the floorplan for some models */ WiFiModelFactory(Floorplan::IndoorMap* map) : map(map) { ; } /** parse model from XML file */ WiFiModel* loadXML(const std::string& file); /** parse model from XML node */ WiFiModel* readFromXML(XMLDoc* doc, XMLElem* src); }; #endif // WIFIMODELFACTORY_H