From 3949b34f8e0a39807b1dae017df5c7f37de8fa7b Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Fri, 24 May 2013 18:43:53 +0200 Subject: Wrap command table lines BZ: 101806 The coding style request all lines to be shorter than 100 caracters. Wrap modified table lines. Change-Id: Ib3ec331a162fff11f41ad82eedb9e84656dde2f7 Signed-off-by: Kevin Rocard Reviewed-on: http://android.intel.com:8080/109776 Reviewed-by: cactus Reviewed-by: Gonzalve, Sebastien Reviewed-by: Denneulin, Guillaume Tested-by: Dixon, CharlesX Reviewed-by: buildbot Tested-by: buildbot --- parameter/ParameterMgr.cpp | 190 +++++++++++++++++++++++++++++++-------------- 1 file changed, 133 insertions(+), 57 deletions(-) (limited to 'parameter/ParameterMgr.cpp') diff --git a/parameter/ParameterMgr.cpp b/parameter/ParameterMgr.cpp index 3af4c39..4003753 100644 --- a/parameter/ParameterMgr.cpp +++ b/parameter/ParameterMgr.cpp @@ -105,77 +105,153 @@ const char* gacSystemSchemasSubFolder = "Schemas"; // Remote command parser array const CParameterMgr::SRemoteCommandParserItem CParameterMgr::gastRemoteCommandParserItems[] = { + /// Version - { "version", &CParameterMgr::versionCommandProcess, 0, "", "Show version" }, + { "version", &CParameterMgr::versionCommandProcess, 0, + "", "Show version" }, + /// Status - { "status", &CParameterMgr::statusCommandProcess, 0, "", "Show current status" }, + { "status", &CParameterMgr::statusCommandProcess, 0, "", + "Show current status" }, + /// Tuning Mode - { "setTuningMode", &CParameterMgr::setTuningModeCommmandProcess, 1, "on|off*", "Turn on or off Tuning Mode" }, - { "getTuningMode", &CParameterMgr::getTuningModeCommmandProcess, 0, "", "Show Tuning Mode" }, + { "setTuningMode", &CParameterMgr::setTuningModeCommmandProcess, 1, + "on|off*", "Turn on or off Tuning Mode" }, + { "getTuningMode", &CParameterMgr::getTuningModeCommmandProcess, 0, + "", "Show Tuning Mode" }, + /// Value Space - { "setValueSpace", &CParameterMgr::setValueSpaceCommmandProcess, 1, "raw|real*", "Assigns Value Space used for parameter value interpretation" }, - { "getValueSpace", &CParameterMgr::getValueSpaceCommmandProcess, 0, "", "Show Value Space" }, + { "setValueSpace", &CParameterMgr::setValueSpaceCommmandProcess, 1, + "raw|real*", "Assigns Value Space used for parameter value interpretation" }, + { "getValueSpace", &CParameterMgr::getValueSpaceCommmandProcess, 0, + "", "Show Value Space" }, + /// Output Raw Format - { "setOutputRawFormat", &CParameterMgr::setOutputRawFormatCommmandProcess, 1, "dec*|hex", "Assigns format used to output parameter values when in raw Value Space" }, - { "getOutputRawFormat", &CParameterMgr::getOutputRawFormatCommmandProcess, 0, "", "Show Output Raw Format" }, + { "setOutputRawFormat", &CParameterMgr::setOutputRawFormatCommmandProcess, 1, + "dec*|hex", "Assigns format used to output parameter values when in raw Value Space" }, + { "getOutputRawFormat", &CParameterMgr::getOutputRawFormatCommmandProcess, 0, + "", "Show Output Raw Format" }, + /// Sync - { "setAutoSync", &CParameterMgr::setAutoSyncCommmandProcess, 1, "on*|off", "Turn on or off automatic synchronization to hardware while in Tuning Mode" }, - { "getAutoSync", &CParameterMgr::getAutoSyncCommmandProcess, 0, "", "Show Auto Sync state" }, - { "sync", &CParameterMgr::syncCommmandProcess, 0, "", "Synchronize current settings to hardware while in Tuning Mode and Auto Sync off" }, + { "setAutoSync", &CParameterMgr::setAutoSyncCommmandProcess, 1, + "on*|off", "Turn on or off automatic synchronization to hardware while in Tuning Mode" }, + { "getAutoSync", &CParameterMgr::getAutoSyncCommmandProcess, 0, + "", "Show Auto Sync state" }, + { "sync", &CParameterMgr::syncCommmandProcess, 0, + "", "Synchronize current settings to hardware while in Tuning Mode and Auto Sync off" }, + /// Criteria - { "listCriteria", &CParameterMgr::listCriteriaCommmandProcess, 0, "[csv]", "List selection criteria" }, + { "listCriteria", &CParameterMgr::listCriteriaCommmandProcess, 0, + "[csv]", "List selection criteria" }, + /// Domains - { "listDomains", &CParameterMgr::listDomainsCommmandProcess, 0, "", "List configurable domains" }, - { "dumpDomains", &CParameterMgr::dumpDomainsCommmandProcess, 0, "", "Show all domains and configurations, including applicability conditions" }, - { "createDomain", &CParameterMgr::createDomainCommmandProcess, 1, "", "Create new configurable domain" }, - { "deleteDomain", &CParameterMgr::deleteDomainCommmandProcess, 1, "", "Delete configurable domain" }, - { "deleteAllDomains", &CParameterMgr::deleteAllDomainsCommmandProcess, 0, "", "Delete all configurable domains" }, - { "renameDomain", &CParameterMgr::renameDomainCommmandProcess, 2, " ", "Rename configurable domain" }, - { "setSequenceAwareness", &CParameterMgr::setSequenceAwarenessCommmandProcess, 1, " true|false*", "Set configurable domain sequence awareness" }, - { "getSequenceAwareness", &CParameterMgr::getSequenceAwarenessCommmandProcess, 1, "", "Get configurable domain sequence awareness" }, - { "listDomainElements", &CParameterMgr::listDomainElementsCommmandProcess, 1, "", "List elements associated to configurable domain" }, - { "addElement", &CParameterMgr::addElementCommmandProcess, 2, " ", "Associate element at given path to configurable domain" }, - { "removeElement", &CParameterMgr::removeElementCommmandProcess, 2, " ", "Dissociate element at given path from configurable domain" }, - { "splitDomain", &CParameterMgr::splitDomainCommmandProcess, 2, " ", "Split configurable domain at given associated element path" }, + { "listDomains", &CParameterMgr::listDomainsCommmandProcess, 0, + "", "List configurable domains" }, + { "dumpDomains", &CParameterMgr::dumpDomainsCommmandProcess, 0, + "", "Show all domains and configurations, including applicability conditions" }, + { "createDomain", &CParameterMgr::createDomainCommmandProcess, 1, + "", "Create new configurable domain" }, + { "deleteDomain", &CParameterMgr::deleteDomainCommmandProcess, 1, + "", "Delete configurable domain" }, + { "deleteAllDomains", &CParameterMgr::deleteAllDomainsCommmandProcess, 0, + "", "Delete all configurable domains" }, + { "renameDomain", &CParameterMgr::renameDomainCommmandProcess, 2, + " ", "Rename configurable domain" }, + { "setSequenceAwareness", &CParameterMgr::setSequenceAwarenessCommmandProcess, 1, + " true|false*", "Set configurable domain sequence awareness" }, + { "getSequenceAwareness", &CParameterMgr::getSequenceAwarenessCommmandProcess, 1, + "", "Get configurable domain sequence awareness" }, + { "listDomainElements", &CParameterMgr::listDomainElementsCommmandProcess, 1, + "", "List elements associated to configurable domain" }, + { "addElement", &CParameterMgr::addElementCommmandProcess, 2, + " ", "Associate element at given path to configurable domain" }, + { "removeElement", &CParameterMgr::removeElementCommmandProcess, 2, + " ", "Dissociate element at given path from configurable domain" }, + { "splitDomain", &CParameterMgr::splitDomainCommmandProcess, 2, + " ", "Split configurable domain at given associated element path" }, + /// Configurations - { "listConfigurations", &CParameterMgr::listConfigurationsCommmandProcess, 1, "", "List domain configurations" }, - { "createConfiguration", &CParameterMgr::createConfigurationCommmandProcess, 2, " ", "Create new domain configuration" }, - { "deleteConfiguration", &CParameterMgr::deleteConfigurationCommmandProcess, 2, " ", "Delete domain configuration" }, - { "renameConfiguration", &CParameterMgr::renameConfigurationCommmandProcess, 3, " ", "Rename domain configuration" }, - { "saveConfiguration", &CParameterMgr::saveConfigurationCommmandProcess, 2, " ", "Save current settings into configuration" }, - { "restoreConfiguration", &CParameterMgr::restoreConfigurationCommmandProcess, 2, " ", "Restore current settings from configuration" }, - { "setElementSequence", &CParameterMgr::setElementSequenceCommmandProcess, 3, " ", "Set element application order for configuration" }, - { "getElementSequence", &CParameterMgr::getElementSequenceCommmandProcess, 2, " ", "Get element application order for configuration" }, - { "setRule", &CParameterMgr::setRuleCommmandProcess, 3, " ", "Set configuration application rule" }, - { "clearRule", &CParameterMgr::clearRuleCommmandProcess, 2, " ", "Clear configuration application rule" }, - { "getRule", &CParameterMgr::getRuleCommmandProcess, 2, " ", "Get configuration application rule" }, + { "listConfigurations", &CParameterMgr::listConfigurationsCommmandProcess, 1, + "", "List domain configurations" }, + { "createConfiguration", &CParameterMgr::createConfigurationCommmandProcess, 2, + " ", "Create new domain configuration" }, + { "deleteConfiguration", &CParameterMgr::deleteConfigurationCommmandProcess, 2, + " ", "Delete domain configuration" }, + { "renameConfiguration", &CParameterMgr::renameConfigurationCommmandProcess, 3, + " ", "Rename domain configuration" }, + { "saveConfiguration", &CParameterMgr::saveConfigurationCommmandProcess, 2, + " ", "Save current settings into configuration" }, + { "restoreConfiguration", &CParameterMgr::restoreConfigurationCommmandProcess, 2, + " ", "Restore current settings from configuration" }, + { "setElementSequence", &CParameterMgr::setElementSequenceCommmandProcess, 3, + " ", + "Set element application order for configuration" }, + { "getElementSequence", &CParameterMgr::getElementSequenceCommmandProcess, 2, + " ", "Get element application order for configuration" }, + { "setRule", &CParameterMgr::setRuleCommmandProcess, 3, + " ", "Set configuration application rule" }, + { "clearRule", &CParameterMgr::clearRuleCommmandProcess, 2, + " ", "Clear configuration application rule" }, + { "getRule", &CParameterMgr::getRuleCommmandProcess, 2, + " ", "Get configuration application rule" }, + /// Elements/Parameters - { "listElements", &CParameterMgr::listElementsCommmandProcess, 1, "|/", "List elements under element at given path or root" }, - { "listParameters", &CParameterMgr::listParametersCommmandProcess, 1, "|/", "List parameters under element at given path or root" }, - { "dumpElement", &CParameterMgr::dumpElementCommmandProcess, 1, "", "Dump structure and content of element at given path" }, - { "getElementSize", &CParameterMgr::getElementSizeCommmandProcess, 1, "", "Show size of element at given path" }, - { "showProperties", &CParameterMgr::showPropertiesCommmandProcess, 1, "", "Show properties of element at given path" }, - { "getParameter", &CParameterMgr::getParameterCommmandProcess, 1, "", "Get value for parameter at given path" }, - { "setParameter", &CParameterMgr::setParameterCommmandProcess, 2, " ", "Set value for parameter at given path" }, - { "listBelongingDomains", &CParameterMgr::listBelongingDomainsCommmandProcess, 1, "", "List domain(s) element at given path belongs to" }, - { "listAssociatedDomains", &CParameterMgr::listAssociatedDomainsCommmandProcess, 1, "", "List domain(s) element at given path is associated to" }, - { "getConfigurationParameter", &CParameterMgr::getConfigurationParameterCommmandProcess, 3, " ", "Get value for parameter at given path from configuration" }, - { "setConfigurationParameter", &CParameterMgr::setConfigurationParameterCommmandProcess, 4, " ", "Set value for parameter at given path to configuration" }, + { "listElements", &CParameterMgr::listElementsCommmandProcess, 1, + "|/", "List elements under element at given path or root" }, + { "listParameters", &CParameterMgr::listParametersCommmandProcess, 1, + "|/", "List parameters under element at given path or root" }, + { "dumpElement", &CParameterMgr::dumpElementCommmandProcess, 1, + "", "Dump structure and content of element at given path" }, + { "getElementSize", &CParameterMgr::getElementSizeCommmandProcess, 1, + "", "Show size of element at given path" }, + { "showProperties", &CParameterMgr::showPropertiesCommmandProcess, 1, + "", "Show properties of element at given path" }, + { "getParameter", &CParameterMgr::getParameterCommmandProcess, 1, + "", "Get value for parameter at given path" }, + { "setParameter", &CParameterMgr::setParameterCommmandProcess, 2, + " ", "Set value for parameter at given path" }, + { "listBelongingDomains", &CParameterMgr::listBelongingDomainsCommmandProcess, 1, + "", "List domain(s) element at given path belongs to" }, + { "listAssociatedDomains", &CParameterMgr::listAssociatedDomainsCommmandProcess, 1, + "", "List domain(s) element at given path is associated to" }, + { "getConfigurationParameter", &CParameterMgr::getConfigurationParameterCommmandProcess, 3, + " ", + "Get value for parameter at given path from configuration" }, + { "setConfigurationParameter", &CParameterMgr::setConfigurationParameterCommmandProcess, 4, + " ", + "Set value for parameter at given path to configuration" }, + /// Browse - { "listAssociatedElements", &CParameterMgr::listAssociatedElementsCommmandProcess, 0, "", "List element sub-trees associated to at least one configurable domain" }, - { "listConflictingElements", &CParameterMgr::listConflictingElementsCommmandProcess, 0, "", "List element sub-trees contained in more than one configurable domain" }, - { "listRogueElements", &CParameterMgr::listRogueElementsCommmandProcess, 0, "", "List element sub-trees owned by no configurable domain" }, + { "listAssociatedElements", &CParameterMgr::listAssociatedElementsCommmandProcess, 0, + "", "List element sub-trees associated to at least one configurable domain" }, + { "listConflictingElements", &CParameterMgr::listConflictingElementsCommmandProcess, 0, + "", "List element sub-trees contained in more than one configurable domain" }, + { "listRogueElements", &CParameterMgr::listRogueElementsCommmandProcess, 0, + "", "List element sub-trees owned by no configurable domain" }, + /// Settings Import/Export - { "exportDomainsXML", &CParameterMgr::exportConfigurableDomainsToXMLCommmandProcess, 1, " ", "Export domains to XML file" }, - { "importDomainsXML", &CParameterMgr::importConfigurableDomainsFromXMLCommmandProcess, 1, "", "Import domains from XML file" }, - { "exportDomainsWithSettingsXML", &CParameterMgr::exportConfigurableDomainsWithSettingsToXMLCommmandProcess, 1, " ", "Export domains including settings to XML file" }, - { "importDomainsWithSettingsXML", &CParameterMgr::importConfigurableDomainsWithSettingsFromXMLCommmandProcess, 1, "", "Import domains including settings from XML file" }, - { "exportSettings", &CParameterMgr::exportSettingsCommmandProcess, 1, "", "Export settings to binary file" }, - { "importSettings", &CParameterMgr::importSettingsCommmandProcess, 1, "", "Import settings from binary file" }, - { "getDomainsXML", &CParameterMgr::getDomainsXMLCommmandProcess, 0 ,"", "Print domains including settings as XML" }, + { "exportDomainsXML", &CParameterMgr::exportConfigurableDomainsToXMLCommmandProcess, 1, + " ", "Export domains to XML file" }, + { "importDomainsXML", &CParameterMgr::importConfigurableDomainsFromXMLCommmandProcess, 1, + "", "Import domains from XML file" }, + { "exportDomainsWithSettingsXML", + &CParameterMgr::exportConfigurableDomainsWithSettingsToXMLCommmandProcess, 1, + " ", "Export domains including settings to XML file" }, + { "importDomainsWithSettingsXML", + &CParameterMgr::importConfigurableDomainsWithSettingsFromXMLCommmandProcess, 1, + "", "Import domains including settings from XML file" }, + { "exportSettings", &CParameterMgr::exportSettingsCommmandProcess, 1, + "", "Export settings to binary file" }, + { "importSettings", &CParameterMgr::importSettingsCommmandProcess, 1, + "", "Import settings from binary file" }, + { "getDomainsXML", &CParameterMgr::getDomainsXMLCommmandProcess, 0 , + "", "Print domains including settings as XML" }, + /// Structure Export - { "getSystemClassXML", &CParameterMgr::getSystemClassXMLCommmandProcess, 0 ,"", "Print parameter structure as XML" } + { "getSystemClassXML", &CParameterMgr::getSystemClassXMLCommmandProcess, 0 , + "", "Print parameter structure as XML" } }; + // Remote command parsers array Size const uint32_t CParameterMgr::guiNbRemoteCommandParserItems = sizeof(gastRemoteCommandParserItems) / sizeof(gastRemoteCommandParserItems[0]); -- cgit v1.1