phaser-server  0.0.2
phaseInterface.h
Go to the documentation of this file.
1 #ifndef PHASE_INTERFACE_H
2 #define PHASE_INTERFACE_H
8 #include <vector>
9 #include <string>
10 class Session;
11 class PhaseJob;
12 
16 { public:
18  virtual void SetJob(Session &, PhaseJob *) = 0;
20  virtual void StopJob(Session &) = 0;
22  virtual void PauseJob(Session &) = 0;
24  virtual void ResumeJob(Session &) = 0;
26  virtual void SkipCavity(Session &) = 0;
28  virtual void GetState(Session &) = 0;
30  virtual std::vector<std::string> GetCavityNames(void) = 0;
32  virtual void PostProgress(unsigned, const std::string &) = 0;
34  virtual bool Peek(bool = false) = 0;
35  typedef std::vector<unsigned> DbIds;
37  virtual void ApplyCorrections(Session &, const DbIds *) = 0;
38 };
39 
40 #endif
Abstract interface to RF cavity phasing.
Definition: phaseInterface.h:16
virtual void PostProgress(unsigned, const std::string &)=0
Post progress of an activity to clients.
virtual std::vector< std::string > GetCavityNames(void)=0
Get the names of eligible RF cavities.
virtual void SkipCavity(Session &)=0
Skip the current cavity in the RF phasing job.
virtual void ResumeJob(Session &)=0
Resume execution of the RF phasing job.
virtual void ApplyCorrections(Session &, const DbIds *)=0
Request phase corrections be applied.
virtual bool Peek(bool=false)=0
Peek for client commands during phasing.
virtual void GetState(Session &)=0
Get the current state of the server.
virtual void StopJob(Session &)=0
Destroy any existing RF phasing job.
virtual void PauseJob(Session &)=0
Pause execution of the RF phasing job.
virtual void SetJob(Session &, PhaseJob *)=0
Set a new RF phasing job.
A job for processing RF cavities.
Definition: phaseJob.h:17
Manage one connection session with a client.
Definition: session.h:23