This reverts commit 6280d9fb0184275843a8f4406c7293e41e65a639, reversing changes made to 3c9c8b8c6a2b2e7430ff09efdc2cc0c1996b16ca.
		
			
				
	
	
		
			41 lines
		
	
	
		
			755 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			755 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef UTILS_RSEDATABASELOADER_H
 | 
						|
#define UTILS_RSEDATABASELOADER_H
 | 
						|
 | 
						|
 | 
						|
/// \cond
 | 
						|
// C headers
 | 
						|
// C++ headers
 | 
						|
#include <string>
 | 
						|
#include <vector>
 | 
						|
 | 
						|
// 3rd party headers
 | 
						|
#include <boost/property_tree/ptree.hpp>
 | 
						|
/// \endcond
 | 
						|
 | 
						|
// qtrocket headers
 | 
						|
#include "model/MotorModel.h"
 | 
						|
 | 
						|
namespace utils {
 | 
						|
 | 
						|
class RSEDatabaseLoader
 | 
						|
{
 | 
						|
public:
 | 
						|
   RSEDatabaseLoader(const std::string& filename);
 | 
						|
   ~RSEDatabaseLoader();
 | 
						|
 | 
						|
   std::vector<model::MotorModel>& getMotors() { return motors; }
 | 
						|
 | 
						|
   model::MotorModel getMotorModelByName(const std::string& name);
 | 
						|
private:
 | 
						|
 | 
						|
   std::vector<model::MotorModel> motors;
 | 
						|
 | 
						|
   void buildAndAppendMotorModel(boost::property_tree::ptree& v);
 | 
						|
 | 
						|
   boost::property_tree::ptree tree;
 | 
						|
};
 | 
						|
 | 
						|
} // namespace utils
 | 
						|
 | 
						|
#endif // UTILS_RSEDATABASELOADER_H
 |