'using namespace std;' added.
This commit is contained in:
+8
-6
@@ -25,6 +25,8 @@
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
/** \file port.h */
|
||||
|
||||
/** available device types. */
|
||||
@@ -62,7 +64,7 @@ public:
|
||||
* @param deviceName to determine device type.
|
||||
* @param noDeviceCheck en-/disable device check.
|
||||
*/
|
||||
virtual void openDevice(const std::string deviceName, const bool noDeviceCheck) = 0;
|
||||
virtual void openDevice(const string deviceName, const bool noDeviceCheck) = 0;
|
||||
|
||||
/**
|
||||
* @brief virtual close function for closing opened file descriptor
|
||||
@@ -114,7 +116,7 @@ protected:
|
||||
bool m_noDeviceCheck;
|
||||
|
||||
/** queue for received bytes */
|
||||
std::queue<unsigned char> m_recvBuffer;
|
||||
queue<unsigned char> m_recvBuffer;
|
||||
|
||||
/** receive buffer */
|
||||
unsigned char m_buffer[MAX_READ_SIZE];
|
||||
@@ -145,7 +147,7 @@ public:
|
||||
* @param deviceName to determine device type.
|
||||
* @param noDeviceCheck en-/disable device check.
|
||||
*/
|
||||
void openDevice(const std::string deviceName, const bool noDeviceCheck);
|
||||
void openDevice(const string deviceName, const bool noDeviceCheck);
|
||||
|
||||
/**
|
||||
* @brief close function for closing opened file descriptor
|
||||
@@ -175,7 +177,7 @@ public:
|
||||
* @param deviceName to determine device type.
|
||||
* @param noDeviceCheck en-/disable device check.
|
||||
*/
|
||||
void openDevice(const std::string deviceName, const bool noDeviceCheck);
|
||||
void openDevice(const string deviceName, const bool noDeviceCheck);
|
||||
|
||||
/**
|
||||
* @brief close opened file descriptor
|
||||
@@ -198,7 +200,7 @@ public:
|
||||
* @param deviceName to determine device type.
|
||||
* @param noDeviceCheck en-/disable device check.
|
||||
*/
|
||||
Port(const std::string deviceName, const bool noDeviceCheck);
|
||||
Port(const string deviceName, const bool noDeviceCheck);
|
||||
|
||||
/**
|
||||
* @brief destructor.
|
||||
@@ -253,7 +255,7 @@ public:
|
||||
|
||||
private:
|
||||
/** the device name */
|
||||
std::string m_deviceName;
|
||||
string m_deviceName;
|
||||
|
||||
/** the device instance */
|
||||
Device* m_device;
|
||||
|
||||
Reference in New Issue
Block a user