Petit Poucet
 
Loading...
Searching...
No Matches
TerminalInterface.cc File Reference

Namespaces

namespace  petitpoucet
 
namespace  petitpoucet::ui
 Namespace for the user interface.
 

Functions

void petitpoucet::ui::configfromUserInput (std::string &casterName, std::string &serialPortName)
 Function to ask the user to define the config parameters.
 
int petitpoucet::ui::giveChoiceTwoOptions (std::string option1, std::string option2, std::string &message)
 Function to ask the user to choose between two options. If the user chooses the first option, the function returns 0, otherwise it returns 1.
 
void petitpoucet::ui::interfaceForInstantaneousPosition (int minimumSNR, petitpoucet::serverinterface::PPServerOptions options, std::string casterName, std::string serialPortName, petitpoucet::serverinterface::CoordinateSystem coordinateSystem)
 User interface for getting the instantaneous position.
 
void petitpoucet::ui::interfaceForPositionOverTime (int minimumSNR, petitpoucet::serverinterface::PPServerOptions options, std::string casterName, std::string serialPortName, petitpoucet::serverinterface::CoordinateSystem coordinateSystem)
 User interface for getting the position over time, where the user triggers and stops the measurment.
 
void petitpoucet::ui::padMessage (std::string &message, int padding)
 Function to pad a message with a certain number of dashes on each side.