◆ AddEmptyJsonCustomActionConfigs()
| void cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::AddEmptyJsonCustomActionConfigs |
( |
| ) |
|
|
inlineprivate |
◆ AddJsonCustomActionConfigs()
| bool cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::AddJsonCustomActionConfigs |
( |
const Json::Value & |
custom_action_array | ) |
|
|
inlineprivate |
◆ custom_action_config_flag_()
| cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::custom_action_config_flag_ |
( |
Flag::StringFlag("custom_action_config") .Help( "Path to a custom action config JSON. Defaults to the file " "provided by build variable CVD_CUSTOM_ACTION_CONFIG. If " "this build variable is empty then the custom action " "config will be empty as well.") .Getter([this]() { return custom_action_config_[0];}) .Setter([this](std::string_view arg) -> Result< void > { if(!arg.empty() &&(arg=="unset"||arg=="\"unset\"")) { custom_action_config_.push_back( DefaultCustomActionConfig()); } else if(!arg.empty() &&!FileExists(std::string(arg))) { return CF_ERRF( "custom_action_config file \"{}\" does not exist.", arg); } else { custom_action_config_.emplace_back(arg); } return {}; }) |
| ) |
|
◆ custom_actions_flag_()
| cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::custom_actions_flag_ |
( |
Flag::StringFlag("custom_actions") .Help("Serialized JSON of an array of custom action objects " "(in the same format as custom action config JSON " "files). For use within --config preset config files; " "prefer --custom_action_config to specify a custom " "config file on the command line. Actions in this flag " "are combined with actions in --custom_action_config.") .Setter([this](std::string_view arg) -> Result< void > { if(arg=="unset"||arg=="\"unset\"") { AddEmptyJsonCustomActionConfigs(); return {}; } auto custom_action_array= CF_EXPECT(ParseJson(arg), "Could not read custom actions config flag"); CF_EXPECT(AddJsonCustomActionConfigs(custom_action_array)); return {}; }) |
| ) |
|
|
inline |
◆ CustomActionServers()
| std::vector< CustomActionServerConfig > cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::CustomActionServers |
( |
const std::string & |
id_str = std::string() | ) |
const |
|
inlineoverridevirtual |
◆ CustomDeviceStateActions()
| std::vector< CustomDeviceStateActionConfig > cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::CustomDeviceStateActions |
( |
const std::string & |
id_str = std::string() | ) |
const |
|
inlineoverridevirtual |
◆ CustomShellActions()
| std::vector< CustomShellActionConfig > cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::CustomShellActions |
( |
const std::string & |
id_str = std::string() | ) |
const |
|
inlineoverridevirtual |
◆ Dependencies()
| std::unordered_set< FlagFeature * > cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::Dependencies |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Deserialize()
| bool cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::Deserialize |
( |
const Json::Value & |
custom_actions_json | ) |
|
|
inlineoverridevirtual |
◆ Flags()
| std::vector< Flag > cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::Flags |
( |
| ) |
const |
|
inlineprivate |
◆ Name()
| std::string cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::Name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Process()
| Result< void > cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::Process |
( |
std::vector< std::string > & |
args | ) |
|
|
inlineoverridevirtual |
◆ Serialize()
| Json::Value cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::Serialize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ WriteGflagsCompatHelpXml()
| bool cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::WriteGflagsCompatHelpXml |
( |
std::ostream & |
out | ) |
const |
|
inlineoverridevirtual |
◆ __pad0__
| cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::__pad0__ |
◆ config_
| ConfigFlag& cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::config_ |
|
private |
◆ custom_action_config_
| std::vector<std::string> cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::custom_action_config_ |
|
private |
◆ custom_action_config_flag_
| Flag cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::custom_action_config_flag_ |
|
private |
◆ custom_actions_flag_
| Flag cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::custom_actions_flag_ |
|
private |
◆ instance_actions_
| std::vector<InstanceActions> cuttlefish::anonymous_namespace{custom_actions.cpp}::CustomActionConfigImpl::instance_actions_ |
|
private |
The documentation for this class was generated from the following file: