#ifndef UTILS_RSEDATABASELOADER_H #define UTILS_RSEDATABASELOADER_H /// \cond // C headers // C++ headers #include #include // 3rd party headers #include /// \endcond // qtrocket headers #include "model/MotorModel.h" namespace utils { class RSEDatabaseLoader { public: RSEDatabaseLoader(const std::string& filename); ~RSEDatabaseLoader(); std::vector& getMotors() { return motors; } model::MotorModel getMotorModelByName(const std::string& name); private: std::vector motors; void buildAndAppendMotorModel(boost::property_tree::ptree& v); boost::property_tree::ptree tree; }; } // namespace utils #endif // UTILS_RSEDATABASELOADER_H