Important Update:
- LogCore:
- Implement ReadLogLevel() & ReadLogOutput() methods
Standardised handling of logging parameters
- Split Log/Output in config to: Log/Output & Log/Options
- LogOutput (Show) param: first nibble = format, second nibble = options
- Replace Format constants (OUT_XXX) with enum ELogOutput
- Add loRaw format - raw untouched output
- Replace OUT_CRLF with OUT_NOCRLF - Replace \r\n with "."
- Improved Binary output method
- Simplified Log->Output() method
- FunctionCore, ApplicationCore:
- Replace reading of LogConfig with new methods in LogCore
This commit is contained in:
@@ -117,8 +117,6 @@ CDataMember::~CDataMember()
|
||||
// Destroy member
|
||||
if (Name)
|
||||
free( Name );
|
||||
if (Value)
|
||||
free( Value );
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
@@ -356,9 +354,11 @@ bool CDataMember::SetValuePtr( EDataType pType, const char * pValue, int pLen )
|
||||
|
||||
bool CDataMember::SetValue( EDataType pType, const char * pValue, int pLen )
|
||||
{
|
||||
// Clear & Update Type
|
||||
Clear();
|
||||
Type = pType;
|
||||
|
||||
// Set new primitive value
|
||||
if ((pType == jtString) || (pType == jtFloat) || (pType == jtInt) || (pType == jtBool))
|
||||
{
|
||||
Len = (pLen == -1)? strlen(pValue) : pLen;
|
||||
|
||||
Reference in New Issue
Block a user