1 #ifndef GCP_UTIL_POINTINGTELESCOPES_H
2 #define GCP_UTIL_POINTINGTELESCOPES_H
17 #include "gcp/grabber/common/Channel.h"
19 #include "gcp/util/common/Mutex.h"
32 PTEL_ALL = PTEL_ZERO | PTEL_ONE | PTEL_TWO
35 static const unsigned short nPtel_ = 3;
49 static unsigned ptelToInt(Ptel ptel);
50 static Ptel intToPtel(
unsigned iPtel);
55 static Ptel
getPtels(gcp::grabber::Channel::FgChannel channel);
56 static Ptel
getSinglePtel(gcp::grabber::Channel::FgChannel channel);
66 static gcp::grabber::Channel::FgChannel
getFgChannels(Ptel ptelMask);
79 gcp::grabber::Channel::FgChannel chan);
83 static bool isSinglePtel(Ptel ptel);
85 static std::vector<Ptel>
getPtels(Ptel ptelMask);
88 gcp::util::operator<<(std::ostream& os,
89 PointingTelescopes::Ptel& ptel);
91 static void setDefaultFgChannels(gcp::grabber::Channel::FgChannel channels);
92 static void setDefaultPtels(Ptel ptels);
94 static gcp::grabber::Channel::FgChannel getDefaultFgChannels();
96 static PointingTelescopes::Ptel getDefaultPtels();
104 static gcp::grabber::Channel::FgChannel defaultChannels_;
108 static std::map<PointingTelescopes::Ptel,
109 gcp::grabber::Channel::FgChannel> channels_;
113 static std::map<gcp::grabber::Channel::FgChannel,
114 PointingTelescopes::Ptel> ptels_;
static gcp::grabber::Channel::FgChannel getSingleFgChannel(Ptel ptel)
Definition: PointingTelescopes.cc:136
static Ptel getSinglePtel(gcp::grabber::Channel::FgChannel channel)
Definition: PointingTelescopes.cc:90
PointingTelescopes()
Definition: PointingTelescopes.cc:22
static unsigned getSingleIntChannel(Ptel ptel)
Definition: PointingTelescopes.cc:154
static Ptel getPtels(gcp::grabber::Channel::FgChannel channel)
Definition: PointingTelescopes.cc:71
static gcp::grabber::Channel::FgChannel getFgChannels(Ptel ptelMask)
Definition: PointingTelescopes.cc:117
static void assignFgChannel(Ptel ptel, gcp::grabber::Channel::FgChannel chan)
Definition: PointingTelescopes.cc:163
virtual ~PointingTelescopes()
Definition: PointingTelescopes.cc:64
Definition: PointingTelescopes.h:24