63 while (*strInput !=
'\0')
65 const char* pItemStart = strInput;
66 adtf::util::cParserHelper::SeekChars(strInput,
"\t",
true);
67 if (*strInput ==
'\0')
76 pItemStart = strInput;
77 adtf::util::cParserHelper::SeekChars(strInput,
"\t",
true);
78 if (*strInput ==
'\0')
84 if (value > std::numeric_limits<uint8_t>::max())
88 RETURN_ERROR_DESC(ERR_INVALID_ARG,
"Detected value which is greater than the maximum possible value of nLogLevel");
92 uint8_t nLogLevel =
static_cast<uint8_t
>(value);
94 pItemStart = strInput;
95 adtf::util::cParserHelper::SeekChars(strInput,
"\t",
true);
96 if (*strInput ==
'\0')
104 pItemStart = strInput;
105 adtf::util::cParserHelper::SeekChars(strInput,
"\n",
true);
106 if (*strInput ==
'\0')
113 if (nTimeStamp == 0 && nLogLevel == 0)
117 oLogger({nTimeStamp, nLogLevel, strMessage, strSource});
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
tInt64 tTimeStamp
type definition for a time value.
#define RETURN_ERROR_DESC(_code,...)
Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
tUInt32 AsUInt32() const
This function converts the string to an integer value.
tInt64 AsInt64() const
This function converts the string to an integer value.
_myType & Unescape()
Escape control characters.
The Remote logging interface.
virtual tResult ReleaseLogBuffer(size_t nBufferID)=0
Releases a log buffer.
virtual size_t CreateLogBuffer(tTimeStamp nTimeout)=0
Creates a new log buffer.
static constexpr const tChar *const DEFAULT_NAME
Default rpc object server name within an ADTF system.
ADTF_IID(ILogging, "logging.ant.remote.adtf")
RPC IID of the Clock.
virtual const char * GetBufferContent(size_t nBufferID)=0
Returns the content of a log buffer.
std::function< tVoid(const tLogEntry &sEntry)> logger
Logger interface definition.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
tResult parse_logging_rpc_buffer(const char *strInput, adtf::util::log::logger oLogger)
This method parses the return value of ILogging::GetBufferContent().
Namespace for entire ADTF SDK.