Classes | Functions | Variables
rcdiscover_reset.cc File Reference
#include "rcdiscover_reset.h"
#include "cli_utils.h"
#include <rcdiscover/discover.h>
#include <rcdiscover/wol.h>
#include <stdexcept>
#include <iostream>
#include <algorithm>
#include <map>
Include dependency graph for rcdiscover_reset.cc:

Go to the source code of this file.

Classes

struct  ResetCommand
 

Functions

static void printHelp (std::ostream &os, const std::string &command)
 
int runReset (const std::string &command, int argc, char **argv)
 

Variables

static const std::map< std::string, ResetCommandreset_commands
 

Function Documentation

◆ printHelp()

static void printHelp ( std::ostream &  os,
const std::string &  command 
)
static

Definition at line 63 of file rcdiscover_reset.cc.

◆ runReset()

int runReset ( const std::string &  command,
int  argc,
char **  argv 
)

Definition at line 90 of file rcdiscover_reset.cc.

Variable Documentation

◆ reset_commands

const std::map<std::string, ResetCommand> reset_commands
static
Initial value:
{
{"parameters", {"Reset parameters", "Resetting parameters", 0xAA}},
{"network", {"Reset network parameters", "Resetting parameters", 0xBB}},
{"all", {"Reset parameters and network parameters", "Resetting all", 0xFF}},
{"switch-partition", {"Switch partition", "Switching partition", 0xCC}}
}

Definition at line 56 of file rcdiscover_reset.cc.



rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56