From cec86c1904a45a7027218adb3d34c8764bdfcc38 Mon Sep 17 00:00:00 2001 From: Georges-Henri Baron Date: Tue, 4 Sep 2012 17:30:28 +0200 Subject: PFW: Add setDomainsXML command to import domains from string BZ: 55694 Unable possibility to import the configurable domains from a string Create one command that can be called through the command line of the parameter-framework. The command setDomainXML allows to import configurable domains with settings from a string provided as first argument containing the xml description. Change-Id: I6db7ccb8ba61b5e4c8ba81579a68f40e887d1534 Signed-off-by: Georges-Henri Baron Reviewed-on: http://android.intel.com:8080/65408 Reviewed-by: cactus Reviewed-by: Dixon, CharlesX Reviewed-by: Rocard, KevinX Tested-by: Dixon, CharlesX Reviewed-by: buildbot Tested-by: buildbot --- xmlserializer/XmlDocSink.h | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) (limited to 'xmlserializer/XmlDocSink.h') diff --git a/xmlserializer/XmlDocSink.h b/xmlserializer/XmlDocSink.h index d341ecf..56a806f 100644 --- a/xmlserializer/XmlDocSink.h +++ b/xmlserializer/XmlDocSink.h @@ -1,6 +1,6 @@ /* * INTEL CONFIDENTIAL - * Copyright © 2011 Intel + * Copyright © 2013 Intel * Corporation All Rights Reserved. * * The source code contained or described herein and all documents related to @@ -19,24 +19,46 @@ * otherwise. Any license under such intellectual property rights must be * express and approved by Intel in writing. * - * CREATED: 2012-08-10 */ #pragma once - #include "XmlDocSource.h" #include "XmlSerializingContext.h" +/** + * The CXmlDocSink class defines how to use a CXmlDocSource. + * The interaction between the xml source and xml sink is defined + * in the process method of CXmlDocSink. One can subclass CXmlDocSink + * for different purpose by implementing the doProcess method and then + * use it with any existing implementation of CXmlDocSource. + */ class CXmlDocSink { public: CXmlDocSink(); - // Source processing + /** + * Method to be called to use an xmlDocSource. + * Any subclass of XmlDocSink must implement the doProcess + * method that will define how to use the xmlDocSource. + * + * @param[in] xmlDocSource a CXmlDocSource reference + * @param[in] serializingContext a CXmlSerializing Context reference + * + * @return true is there was no error during the processing of xmlDocSource + */ bool process(CXmlDocSource& xmlDocSource, CXmlSerializingContext& serializingContext); virtual ~CXmlDocSink() {} private: - // Handle for subclasses to process the source + /** + * Handle for subclasses to process the source. + * This method will define what to do with the xmlDocSource. + * + * @param[in] xmlDocSource a CXmlDocSource reference + * @param[in] serializingContext a CXmlSerializing Context reference + * + * @return true is there was no error during the processing of xmlDocSource + */ virtual bool doProcess(CXmlDocSource& xmlDocSource, CXmlSerializingContext& serializingContext) = 0; }; -- cgit v1.1