#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "halcyon.h"
#include "hdcontrol.h"
#include "hdcommands.h"
#include "hdlisten.h"
Functions | |
void | printval (string) |
void | parsecmd (string) |
void | getcommands () |
void getcommands | ( | ) |
Get commands from the keyboard and process them. We handle "exit" and "show" and everything else is passed on to the HD Radio Controller for processing. Exit will leave the program (and shut the radio off). Show will display variable values. If no arguments are given, all variables currently stored are displayed. If "def" is given a set of default variables is displayed instead of all. If the name of a variable is given, that variable's value is displayed.
void parsecmd | ( | string | cmdline | ) |
Parse a command typed in or given on the command line.
cmdline | a command with arguments separated by spaces to be parsed. |
void printval | ( | string | valkey | ) |
Display the name of a variable and its value.
valkey | the key of the variable we're going to display |