summaryrefslogtreecommitdiffstats
path: root/parameter/ParameterMgr.cpp
diff options
context:
space:
mode:
authorKevin Rocard <kevinx.rocard@intel.com>2013-05-24 18:43:53 +0200
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:03:53 +0100
commit3949b34f8e0a39807b1dae017df5c7f37de8fa7b (patch)
tree39f874fb4fbf3f893110af765d0a058b885afd99 /parameter/ParameterMgr.cpp
parent4eae8272c44ff786f5cec21c0af64bbd13792d4c (diff)
downloadexternal_parameter-framework-3949b34f8e0a39807b1dae017df5c7f37de8fa7b.zip
external_parameter-framework-3949b34f8e0a39807b1dae017df5c7f37de8fa7b.tar.gz
external_parameter-framework-3949b34f8e0a39807b1dae017df5c7f37de8fa7b.tar.bz2
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 <kevinx.rocard@intel.com> Reviewed-on: http://android.intel.com:8080/109776 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Gonzalve, Sebastien <sebastien.gonzalve@intel.com> Reviewed-by: Denneulin, Guillaume <guillaume.denneulin@intel.com> Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'parameter/ParameterMgr.cpp')
-rw-r--r--parameter/ParameterMgr.cpp190
1 files changed, 133 insertions, 57 deletions
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, "<domain>", "Create new configurable domain" },
- { "deleteDomain", &CParameterMgr::deleteDomainCommmandProcess, 1, "<domain>", "Delete configurable domain" },
- { "deleteAllDomains", &CParameterMgr::deleteAllDomainsCommmandProcess, 0, "", "Delete all configurable domains" },
- { "renameDomain", &CParameterMgr::renameDomainCommmandProcess, 2, "<domain> <new name>", "Rename configurable domain" },
- { "setSequenceAwareness", &CParameterMgr::setSequenceAwarenessCommmandProcess, 1, "<domain> true|false*", "Set configurable domain sequence awareness" },
- { "getSequenceAwareness", &CParameterMgr::getSequenceAwarenessCommmandProcess, 1, "<domain>", "Get configurable domain sequence awareness" },
- { "listDomainElements", &CParameterMgr::listDomainElementsCommmandProcess, 1, "<domain>", "List elements associated to configurable domain" },
- { "addElement", &CParameterMgr::addElementCommmandProcess, 2, "<domain> <elem path>", "Associate element at given path to configurable domain" },
- { "removeElement", &CParameterMgr::removeElementCommmandProcess, 2, "<domain> <elem path>", "Dissociate element at given path from configurable domain" },
- { "splitDomain", &CParameterMgr::splitDomainCommmandProcess, 2, "<domain> <elem path>", "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,
+ "<domain>", "Create new configurable domain" },
+ { "deleteDomain", &CParameterMgr::deleteDomainCommmandProcess, 1,
+ "<domain>", "Delete configurable domain" },
+ { "deleteAllDomains", &CParameterMgr::deleteAllDomainsCommmandProcess, 0,
+ "", "Delete all configurable domains" },
+ { "renameDomain", &CParameterMgr::renameDomainCommmandProcess, 2,
+ "<domain> <new name>", "Rename configurable domain" },
+ { "setSequenceAwareness", &CParameterMgr::setSequenceAwarenessCommmandProcess, 1,
+ "<domain> true|false*", "Set configurable domain sequence awareness" },
+ { "getSequenceAwareness", &CParameterMgr::getSequenceAwarenessCommmandProcess, 1,
+ "<domain>", "Get configurable domain sequence awareness" },
+ { "listDomainElements", &CParameterMgr::listDomainElementsCommmandProcess, 1,
+ "<domain>", "List elements associated to configurable domain" },
+ { "addElement", &CParameterMgr::addElementCommmandProcess, 2,
+ "<domain> <elem path>", "Associate element at given path to configurable domain" },
+ { "removeElement", &CParameterMgr::removeElementCommmandProcess, 2,
+ "<domain> <elem path>", "Dissociate element at given path from configurable domain" },
+ { "splitDomain", &CParameterMgr::splitDomainCommmandProcess, 2,
+ "<domain> <elem path>", "Split configurable domain at given associated element path" },
+
/// Configurations
- { "listConfigurations", &CParameterMgr::listConfigurationsCommmandProcess, 1, "<domain>", "List domain configurations" },
- { "createConfiguration", &CParameterMgr::createConfigurationCommmandProcess, 2, "<domain> <configuration>", "Create new domain configuration" },
- { "deleteConfiguration", &CParameterMgr::deleteConfigurationCommmandProcess, 2, "<domain> <configuration>", "Delete domain configuration" },
- { "renameConfiguration", &CParameterMgr::renameConfigurationCommmandProcess, 3, "<domain> <configuration> <new name>", "Rename domain configuration" },
- { "saveConfiguration", &CParameterMgr::saveConfigurationCommmandProcess, 2, "<domain> <configuration>", "Save current settings into configuration" },
- { "restoreConfiguration", &CParameterMgr::restoreConfigurationCommmandProcess, 2, "<domain> <configuration>", "Restore current settings from configuration" },
- { "setElementSequence", &CParameterMgr::setElementSequenceCommmandProcess, 3, "<domain> <configuration> <elem path list>", "Set element application order for configuration" },
- { "getElementSequence", &CParameterMgr::getElementSequenceCommmandProcess, 2, "<domain> <configuration>", "Get element application order for configuration" },
- { "setRule", &CParameterMgr::setRuleCommmandProcess, 3, "<domain> <configuration> <rule>", "Set configuration application rule" },
- { "clearRule", &CParameterMgr::clearRuleCommmandProcess, 2, "<domain> <configuration>", "Clear configuration application rule" },
- { "getRule", &CParameterMgr::getRuleCommmandProcess, 2, "<domain> <configuration>", "Get configuration application rule" },
+ { "listConfigurations", &CParameterMgr::listConfigurationsCommmandProcess, 1,
+ "<domain>", "List domain configurations" },
+ { "createConfiguration", &CParameterMgr::createConfigurationCommmandProcess, 2,
+ "<domain> <configuration>", "Create new domain configuration" },
+ { "deleteConfiguration", &CParameterMgr::deleteConfigurationCommmandProcess, 2,
+ "<domain> <configuration>", "Delete domain configuration" },
+ { "renameConfiguration", &CParameterMgr::renameConfigurationCommmandProcess, 3,
+ "<domain> <configuration> <new name>", "Rename domain configuration" },
+ { "saveConfiguration", &CParameterMgr::saveConfigurationCommmandProcess, 2,
+ "<domain> <configuration>", "Save current settings into configuration" },
+ { "restoreConfiguration", &CParameterMgr::restoreConfigurationCommmandProcess, 2,
+ "<domain> <configuration>", "Restore current settings from configuration" },
+ { "setElementSequence", &CParameterMgr::setElementSequenceCommmandProcess, 3,
+ "<domain> <configuration> <elem path list>",
+ "Set element application order for configuration" },
+ { "getElementSequence", &CParameterMgr::getElementSequenceCommmandProcess, 2,
+ "<domain> <configuration>", "Get element application order for configuration" },
+ { "setRule", &CParameterMgr::setRuleCommmandProcess, 3,
+ "<domain> <configuration> <rule>", "Set configuration application rule" },
+ { "clearRule", &CParameterMgr::clearRuleCommmandProcess, 2,
+ "<domain> <configuration>", "Clear configuration application rule" },
+ { "getRule", &CParameterMgr::getRuleCommmandProcess, 2,
+ "<domain> <configuration>", "Get configuration application rule" },
+
/// Elements/Parameters
- { "listElements", &CParameterMgr::listElementsCommmandProcess, 1, "<elem path>|/", "List elements under element at given path or root" },
- { "listParameters", &CParameterMgr::listParametersCommmandProcess, 1, "<elem path>|/", "List parameters under element at given path or root" },
- { "dumpElement", &CParameterMgr::dumpElementCommmandProcess, 1, "<elem path>", "Dump structure and content of element at given path" },
- { "getElementSize", &CParameterMgr::getElementSizeCommmandProcess, 1, "<elem path>", "Show size of element at given path" },
- { "showProperties", &CParameterMgr::showPropertiesCommmandProcess, 1, "<elem path>", "Show properties of element at given path" },
- { "getParameter", &CParameterMgr::getParameterCommmandProcess, 1, "<param path>", "Get value for parameter at given path" },
- { "setParameter", &CParameterMgr::setParameterCommmandProcess, 2, "<param path> <value>", "Set value for parameter at given path" },
- { "listBelongingDomains", &CParameterMgr::listBelongingDomainsCommmandProcess, 1, "<elem path>", "List domain(s) element at given path belongs to" },
- { "listAssociatedDomains", &CParameterMgr::listAssociatedDomainsCommmandProcess, 1, "<elem path>", "List domain(s) element at given path is associated to" },
- { "getConfigurationParameter", &CParameterMgr::getConfigurationParameterCommmandProcess, 3, "<domain> <configuration> <param path>", "Get value for parameter at given path from configuration" },
- { "setConfigurationParameter", &CParameterMgr::setConfigurationParameterCommmandProcess, 4, "<domain> <configuration> <param path> <value>", "Set value for parameter at given path to configuration" },
+ { "listElements", &CParameterMgr::listElementsCommmandProcess, 1,
+ "<elem path>|/", "List elements under element at given path or root" },
+ { "listParameters", &CParameterMgr::listParametersCommmandProcess, 1,
+ "<elem path>|/", "List parameters under element at given path or root" },
+ { "dumpElement", &CParameterMgr::dumpElementCommmandProcess, 1,
+ "<elem path>", "Dump structure and content of element at given path" },
+ { "getElementSize", &CParameterMgr::getElementSizeCommmandProcess, 1,
+ "<elem path>", "Show size of element at given path" },
+ { "showProperties", &CParameterMgr::showPropertiesCommmandProcess, 1,
+ "<elem path>", "Show properties of element at given path" },
+ { "getParameter", &CParameterMgr::getParameterCommmandProcess, 1,
+ "<param path>", "Get value for parameter at given path" },
+ { "setParameter", &CParameterMgr::setParameterCommmandProcess, 2,
+ "<param path> <value>", "Set value for parameter at given path" },
+ { "listBelongingDomains", &CParameterMgr::listBelongingDomainsCommmandProcess, 1,
+ "<elem path>", "List domain(s) element at given path belongs to" },
+ { "listAssociatedDomains", &CParameterMgr::listAssociatedDomainsCommmandProcess, 1,
+ "<elem path>", "List domain(s) element at given path is associated to" },
+ { "getConfigurationParameter", &CParameterMgr::getConfigurationParameterCommmandProcess, 3,
+ "<domain> <configuration> <param path>",
+ "Get value for parameter at given path from configuration" },
+ { "setConfigurationParameter", &CParameterMgr::setConfigurationParameterCommmandProcess, 4,
+ "<domain> <configuration> <param path> <value>",
+ "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, "<file path> ", "Export domains to XML file" },
- { "importDomainsXML", &CParameterMgr::importConfigurableDomainsFromXMLCommmandProcess, 1, "<file path>", "Import domains from XML file" },
- { "exportDomainsWithSettingsXML", &CParameterMgr::exportConfigurableDomainsWithSettingsToXMLCommmandProcess, 1, "<file path> ", "Export domains including settings to XML file" },
- { "importDomainsWithSettingsXML", &CParameterMgr::importConfigurableDomainsWithSettingsFromXMLCommmandProcess, 1, "<file path>", "Import domains including settings from XML file" },
- { "exportSettings", &CParameterMgr::exportSettingsCommmandProcess, 1, "<file path>", "Export settings to binary file" },
- { "importSettings", &CParameterMgr::importSettingsCommmandProcess, 1, "<file path>", "Import settings from binary file" },
- { "getDomainsXML", &CParameterMgr::getDomainsXMLCommmandProcess, 0 ,"", "Print domains including settings as XML" },
+ { "exportDomainsXML", &CParameterMgr::exportConfigurableDomainsToXMLCommmandProcess, 1,
+ "<file path> ", "Export domains to XML file" },
+ { "importDomainsXML", &CParameterMgr::importConfigurableDomainsFromXMLCommmandProcess, 1,
+ "<file path>", "Import domains from XML file" },
+ { "exportDomainsWithSettingsXML",
+ &CParameterMgr::exportConfigurableDomainsWithSettingsToXMLCommmandProcess, 1,
+ "<file path> ", "Export domains including settings to XML file" },
+ { "importDomainsWithSettingsXML",
+ &CParameterMgr::importConfigurableDomainsWithSettingsFromXMLCommmandProcess, 1,
+ "<file path>", "Import domains including settings from XML file" },
+ { "exportSettings", &CParameterMgr::exportSettingsCommmandProcess, 1,
+ "<file path>", "Export settings to binary file" },
+ { "importSettings", &CParameterMgr::importSettingsCommmandProcess, 1,
+ "<file path>", "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]);