fix for non-default unsigned char

This commit is contained in:
john30
2015-02-25 21:59:13 +01:00
parent f4f2bbe2a6
commit 382f7e175d
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -409,7 +409,7 @@ void SingleDataField::dump(ostream& output)
result_t SingleDataField::read(const PartType partType,
SymbolString& data, unsigned char offset,
ostringstream& output, bool leadingSeparator,
bool verbose, const char* fieldName, char fieldIndex,
bool verbose, const char* fieldName, signed char fieldIndex,
char separator)
{
if (partType != m_partType)
@@ -1196,7 +1196,7 @@ void DataFieldSet::dump(ostream& output)
result_t DataFieldSet::read(const PartType partType,
SymbolString& data, unsigned char offset,
ostringstream& output, bool leadingSeparator,
bool verbose, const char* fieldName, char fieldIndex,
bool verbose, const char* fieldName, signed char fieldIndex,
char separator)
{
bool previousFullByteOffset = true, found = false, findFieldIndex = fieldName != NULL && fieldIndex >= 0;
+3 -3
View File
@@ -217,7 +217,7 @@ public:
virtual result_t read(const PartType partType,
SymbolString& data, unsigned char offset,
ostringstream& output, bool leadingSeparator=false,
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
char separator=UI_FIELD_SEPARATOR) = 0;
/**
@@ -309,7 +309,7 @@ public:
virtual result_t read(const PartType partType,
SymbolString& data, unsigned char offset,
ostringstream& output, bool leadingSeparator=false,
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
char separator=UI_FIELD_SEPARATOR);
// @copydoc
@@ -641,7 +641,7 @@ public:
virtual result_t read(const PartType partType,
SymbolString& data, unsigned char offset,
ostringstream& output, bool leadingSeparator=false,
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
char separator=UI_FIELD_SEPARATOR);
// @copydoc
+1 -1
View File
@@ -313,7 +313,7 @@ result_t Message::prepareSlave(SymbolString& slaveData)
result_t Message::decode(const PartType partType, SymbolString& data,
ostringstream& output, bool leadingSeparator,
bool verbose, const char* fieldName, char fieldIndex,
bool verbose, const char* fieldName, signed char fieldIndex,
char separator)
{
unsigned char offset;
+1 -1
View File
@@ -190,7 +190,7 @@ public:
*/
result_t decode(const PartType partType, SymbolString& data,
ostringstream& output, bool leadingSeparator=false,
bool verbose=false, const char* fieldName=NULL, char fieldIndex=-1,
bool verbose=false, const char* fieldName=NULL, signed char fieldIndex=-1,
char separator=UI_FIELD_SEPARATOR);
/**