diff options
Diffstat (limited to 'parameter/Element.cpp')
-rw-r--r-- | parameter/Element.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/parameter/Element.cpp b/parameter/Element.cpp index 06c3df2..a96c683 100644 --- a/parameter/Element.cpp +++ b/parameter/Element.cpp @@ -69,6 +69,19 @@ void CElement::log_warning(const string& strMessage, ...) const doLog(true, acBuffer); } +// Log each element of the string list +void CElement::log_table(bool bIsWarning, const list<string> lstrMessage) const +{ + list<string>::const_iterator iterator(lstrMessage.begin()); + list<string>::const_iterator end(lstrMessage.end()); + + while (iterator != end) { + // Log current list element + doLog(bIsWarning, iterator->c_str()); + ++iterator; + } +} + void CElement::doLog(bool bIsWarning, const string& strLog) const { assert(_pParent); |