]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Formatter: add a dump_format_ns to base Formatter
authorAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Wed, 27 Aug 2014 06:32:19 +0000 (12:02 +0530)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Fri, 5 Sep 2014 03:34:48 +0000 (09:04 +0530)
commit2fb51b2b58edd4af6c03bcac7c6cde2348d31900
tree72828b413bed3c4cd70d575fea388ee512f9a575
parent4dbc4c412b5b86b1694b47fff02661e332ef4b3c
Formatter: add a dump_format_ns to base Formatter

`dump_format_ns` is a generic formatter to dump a simple format along
with a namespace. It is `dump_format` with an optional ns. This also
extends the XML formatter with this functionality. This allows creation
of xml tags with ns and a specified format. The JSON Format doesn't
define a ns, and here the functionality is exactly same as that of
`dump_format`

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
src/common/Formatter.cc
src/common/Formatter.h