#ifndef _COMMAND_NXT_
#define _COMMAND_NXT_
 
#include "NXT++.h"
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
 
using namespace std;
 
class cCommandNXT
{
	private:
 
		int Str2Int (const string &str);
		string Int2Str(int n);
		bool Str2Bool (const string &str);
		string ToLowerCase(string str);
 
		string RedirectCmd(vector<string>& cmds);
 
		string MotorCmd(vector<string>& cmds);
		string SensorCmd(vector<string>& cmds);
		string NXTCmd(vector<string>& cmds);
 
		bool CheckOutPort(const string& port);
		bool CheckInPort(const string& port);
		bool CheckPower(const string& power);
		bool CheckBoolean(const string& boolen);
		bool CheckTacho(const string& tacho); // TODO
 
		int ConvertPortOut(const string& port);
		int ConvertPortIn(const string& port);
 
		bool isOpen;
 
	public:
 
		cCommandNXT();
		~cCommandNXT();
		string CallCmd(string& obj);
 
};
#endif
pl/miw/miw08_mindstormscontrolc/files/commandnxt.h.txt · ostatnio zmienione: 2019/06/27 15:50 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0