Classes | Functions
cli_utils.h File Reference
#include <string>
#include <vector>
#include <map>
#include <rcdiscover/deviceinfo.h>
Include dependency graph for cli_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DeviceFilter
 

Functions

std::vector< rcdiscover::DeviceInfodiscoverWithFilter (const DeviceFilter &filter)
 
bool filterDevice (const rcdiscover::DeviceInfo &device_info, const DeviceFilter &filter)
 
template<typename K , typename V >
int getMaxCommandLen (const std::map< K, V > &commands)
 
int parseFilterArguments (int argc, char **argv, DeviceFilter &filter)
 
void printDeviceTable (std::ostream &oss, const std::vector< rcdiscover::DeviceInfo > &devices, bool print_header, bool iponly, bool serialonly)
 
void printTable (std::ostream &oss, const std::vector< std::vector< std::string >> &to_be_printed)
 

Function Documentation

◆ discoverWithFilter()

std::vector<rcdiscover::DeviceInfo> discoverWithFilter ( const DeviceFilter filter)

Definition at line 116 of file cli_utils.cc.

◆ filterDevice()

bool filterDevice ( const rcdiscover::DeviceInfo device_info,
const DeviceFilter filter 
)

Definition at line 87 of file cli_utils.cc.

◆ getMaxCommandLen()

template<typename K , typename V >
int getMaxCommandLen ( const std::map< K, V > &  commands)

Definition at line 70 of file cli_utils.h.

◆ parseFilterArguments()

int parseFilterArguments ( int  argc,
char **  argv,
DeviceFilter filter 
)

Definition at line 50 of file cli_utils.cc.

◆ printDeviceTable()

void printDeviceTable ( std::ostream &  oss,
const std::vector< rcdiscover::DeviceInfo > &  devices,
bool  print_header,
bool  iponly,
bool  serialonly 
)

Definition at line 186 of file cli_utils.cc.

◆ printTable()

void printTable ( std::ostream &  oss,
const std::vector< std::vector< std::string >> &  to_be_printed 
)

Definition at line 152 of file cli_utils.cc.



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