|
phaser-server
0.0.4
|
A command session to the server. More...
#include <commander.h>
Public Member Functions | |
| Commander (const std::string &, int) | |
| Create a server command session. More... | |
| void | Command (const std::vector< std::string > &) |
| Command the server. More... | |
| void | Interactive (void) |
| Accept commands from stdin. More... | |
| void | SimplePlan (void) |
| Send a simple Cavity phasing plan to the server. | |
| void | Apply (const std::vector< std::string > &) |
| Apply phase corrections. More... | |
A command session to the server.
Server commands are issued and server response is received. The user can pass a set of commands or start an interactive session.
| Commander::Commander | ( | const std::string & | host, |
| int | port | ||
| ) |
Create a server command session.
| host | - The server's host. |
| port | - The server's port number. |
| void Commander::Apply | ( | const std::vector< std::string > & | ids | ) |
Apply phase corrections.
| ids | - list of database RESULT row identifiers. |
| void Commander::Command | ( | const std::vector< std::string > & | commands | ) |
Command the server.
Each of the passed commands is submitted individually to the server.
| commands | - Collection of server commands. |
| void Commander::Interactive | ( | void | ) |
Accept commands from stdin.
The command session is terminated when an empty command is entered.