CARMA C++
SignalPath.h
Go to the documentation of this file.
1 
13 #ifndef CARMA_MONITOR_SIGNAL_PATH_H
14 #define CARMA_MONITOR_SIGNAL_PATH_H
15 
16 #include <string>
17 #include <iosfwd>
18 
21 
22 namespace carma {
23  namespace monitor {
24 
34 class SignalPath {
35 
36 public:
37 
46  SignalPath ();
47 
51  ~SignalPath();
52 
63  unsigned short getCarmaAntennaNo (const std::string& antName) const ;
64 
75  std::string
76  getCarmaAntennaName(const unsigned short carmaAntennaNo) const ;
77 
84  unsigned int getInputNo (const std::string& antName) const ;
85 
92  unsigned int getSynthesizerNo (const std::string& antName) const ;
93 
100  unsigned int getIFchannelNo (const std::string& antName) const ;
101 
108  unsigned int getLOchannelNo (const std::string& antName) const ;
109 
116  unsigned int getLRchannelNo (const std::string& antName) const ;
117 
125  unsigned int getIFchannelID (const unsigned int dcInputID) const ;
126 
134  void mapAntToStation (std::string& antName, unsigned int stationID) ;
135 
143  void mapAntToSynth (std::string& antName, unsigned int synthID) ;
144 
152  void mapAntToIFchannel (std::string& antName, unsigned int IFchannelID) ;
153 
162  void mapAntToLRchannel (std::string& antName, unsigned int LRchannelID) ;
163 
171  void mapAntToLOchannel (std::string& antName, unsigned int LOchannelID) ;
172 
181  void mapIFchannelToDCinput
182  (const unsigned int IFchannelID, unsigned int dcInputID) ;
183 
184  protected:
185 
193  int findAntEntry (const std::string& antName) const ;
194 
202  unsigned int findIFchannelEntry (const unsigned int IFchannelID) const ;
203 
210  static void initializeMaxConstants () ;
211 
212  private:
213 
214 }; // class SignalPath
215 
216 
222 class EntryNotFoundException : public ::carma::util::NotFoundException {
223  public:
234  EntryNotFoundException (const std::ostringstream& oss,
235  const char* fileName,
236  const int lineNum) ;
241  virtual ~EntryNotFoundException () throw ();
242 };
243 
244 
250 class AntennaNotFoundException : public EntryNotFoundException {
251  public:
262  AntennaNotFoundException (const std::ostringstream& oss,
263  const char* fileName,
264  const int lineNum) ;
269  virtual ~AntennaNotFoundException () throw ();
270 };
271 
272 
278 class IFchannelEntryNotFoundException : public EntryNotFoundException {
279  public:
290  IFchannelEntryNotFoundException (const std::ostringstream& oss,
291  const char* fileName,
292  const int lineNum) ;
297  virtual ~IFchannelEntryNotFoundException () throw ();
298 };
299 
300 
306 class SynthIDOutOfRangeException : public ::carma::util::ErrorException {
307  public:
318  SynthIDOutOfRangeException (const std::ostringstream& oss,
319  const char* fileName,
320  const int lineNum) ;
325  virtual ~SynthIDOutOfRangeException () throw ();
326 };
327 
328 
334 class IFchannelIDOutOfRangeException : public ::carma::util::ErrorException {
335  public:
346  IFchannelIDOutOfRangeException (const std::ostringstream& oss,
347  const char* fileName,
348  const int lineNum) ;
353  virtual ~IFchannelIDOutOfRangeException () throw ();
354 };
355 
356 
362 class LRchannelIDOutOfRangeException : public ::carma::util::ErrorException {
363  public:
374  LRchannelIDOutOfRangeException (const std::ostringstream& oss,
375  const char* fileName,
376  const int lineNum) ;
381  virtual ~LRchannelIDOutOfRangeException () throw ();
382 };
383 
384 
390 class LOchannelIDOutOfRangeException : public ::carma::util::ErrorException {
391  public:
402  LOchannelIDOutOfRangeException (const std::ostringstream& oss,
403  const char* fileName,
404  const int lineNum) ;
405 
410  virtual ~LOchannelIDOutOfRangeException () throw ();
411 };
412 
413 } } // namespace ::carma::monitor
414 
415 
416 #endif // CARMA_MONITOR_SIGNAL_PATH_H
Exception class for errors.
an exception indicating that a look-up operation failed find a match to the inputs.
NotFoundException class.