nyx-cmd-modules/battery/nyx_cmd_battery.cpp
NyxCmdCommand *NyxCmdBattery::getCommand(string commandName)
{
	if (commandName == "readall")
	{
		return new NyxCmdBatteryRead();
	}
	else if (commandName == "register_status")
	{
		return new NyxCmdBatteryRegisterStatus();
	}

	return NULL;
}
/*
* Returns the command object instance by for defined name.
* Implemented command names and their class initiations are added here.
*/
Returns the command object instance by for defined name.
Implemented command names and their class initiations are added here.
Returns the command object instance by for defined name . Implemented command names and their class initiations are added here .
NyxCmdCommand *NyxCmdBattery::getCommand(string commandName)
{
	if (commandName == "readall")
	{
		return new NyxCmdBatteryRead();
	}
	else if (commandName == "register_status")
	{
		return new NyxCmdBatteryRegisterStatus();
	}
	return NULL;
}
NyxCmdCommand * NyxCmdBattery :: getCommand ( string commandName ) { if ( commandName == " " ) { return new NyxCmdBatteryRead ( ) ; } else if ( commandName == " " ) { return new NyxCmdBatteryRegisterStatus ( ) ; } return NULL ; }
Returns the command object instance by for defined name.
Returns the command object instance by for defined name .