Commit 95d54498 authored by kirov's avatar kirov
Browse files

+ changed 'Num' to 'Nb' according to the coding standard



git-svn-id: https://scm.blissgarden.org/svn/lima/trunk@77 45c4679d-1946-429d-baad-37912b19538b
parent 872c7fcc
......@@ -33,7 +33,7 @@ class SerialLine : public HwSerialLine
virtual void flush();
virtual void getNumAvailBytes( int &avail_bytes );
virtual void getNbAvailBytes( int &avail_bytes );
private :
Dev& m_dev;
......
......@@ -69,7 +69,7 @@ void SerialLine::flush()
}
void SerialLine::getNumAvailBytes( int &avail_bytes )
void SerialLine::getNbAvailBytes( int &avail_bytes )
{
unsigned long ret_bytes = 0;
......
......@@ -48,7 +48,7 @@ class SerialLine : public HwSerialLine
virtual void flush();
virtual void getNumAvailBytes(int &avail);
virtual void getNbAvailBytes(int &avail);
virtual void setTimeout(double timeout);
virtual void getTimeout(double& timeout) const;
......
......@@ -106,9 +106,9 @@ void SerialLine::flush()
m_espia_ser_line.flush();
}
void SerialLine::getNumAvailBytes(int &avail)
void SerialLine::getNbAvailBytes(int &avail)
{
m_espia_ser_line.getNumAvailBytes(avail);
m_espia_ser_line.getNbAvailBytes(avail);
}
void SerialLine::setTimeout(double timeout)
......
......@@ -50,7 +50,7 @@ class HwSerialLine
virtual void readAvailable( std::string& buffer, int max_len );
virtual void getNumAvailBytes( int &avail ) = 0;
virtual void getNbAvailBytes( int &avail ) = 0;
virtual void setLineTerm( const std::string& line_term );
virtual void getLineTerm( std::string& line_term ) const;
......
......@@ -108,7 +108,7 @@ void HwSerialLine::flush()
string buf;
int len;
getNumAvailBytes(len);
getNbAvailBytes(len);
read( buf, len, TimeoutNoBlock );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment