// SlPara.h: interface for the CSlPara class. ////////////////////////////////////////////////////////////////////// #pragma warning (disable: 4786) #include #include #include using std::map; using std::vector; using std::string; #if !defined(AFX_SLPARA_H__D027CAD8_EAE8_4323_9E02_97C33CA2A269__INCLUDED_) #define AFX_SLPARA_H__D027CAD8_EAE8_4323_9E02_97C33CA2A269__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CSlPara { public: CSlPara(); virtual ~CSlPara(); string GetCommand(string key); string SendMotorParams(char motor, bool vel); void SaveMotorParam(char motor, string key, string value); void LoadMotorParams(string file); void SaveMotorParamsInFile(string file); string GetMotorParam(char motor, string key); private: map m_Commands; map m_motorAParams; map m_motorBParams; map m_motorCParams; }; #endif // !defined(AFX_SLPARA_H__D027CAD8_EAE8_4323_9E02_97C33CA2A269__INCLUDED_)