1 #ifndef SZA_UTIL_CORRELATORBAND_H
2 #define SZA_UTIL_CORRELATORBAND_H
15 #include "carma/szautil/Directives.h"
16 #include "carma/szautil/Frequency.h"
34 static const unsigned int NBAND = 16;
40 static const unsigned int NCHAN_TOTAL = 17;
101 static std::string
bandName(
unsigned iBand);
122 unsigned short getDcNodeIndex();
197 friend std::ostringstream&
operator<<(std::ostringstream& os,
223 static const Frequency bandWidth_;
227 static const Frequency bandWidthPerChannel_;
232 bool isValid(
unsigned int band);
237 Id intToId(
unsigned int iband);
249 std::ostream& operator<<(std::ostream& os,
const CorrelatorBand& band);
254 std::ostringstream& operator<<(std::ostringstream& os,
255 const CorrelatorBand& band);
bool operator<(const CorrelatorBand band)
Define < for two band enumerators.
bool operator>=(const CorrelatorBand band)
Define >= for two band enumerators.
static Frequency bandWidth()
......................................................................
void setId(CorrelatorBand::Id id)
Set the id of this antenna enumerator.
bool operator>(const CorrelatorBand band)
Define > for two band enumerators.
unsigned int getIntId()
Return an integer band index associated with this enumerator.
bool isValidSingleBand()
Check if this object specifies a valid single band.
unsigned short getDcBandIndex()
Return an integer band index suitable for passing to the downconverter API.
bool operator==(const CorrelatorBand band)
Define equality for two band enumerators.
bool operator<=(const CorrelatorBand band)
Define <= for two band enumerators.
CorrelatorBand()
Constructor with uninitialized band.
bool isSet(CorrelatorBand::Id id)
Return true if the passed is is part of this object's band set.
friend std::ostream & operator<<(std::ostream &os, const CorrelatorBand &band)
Allows cout << band.
A class to enumerate a single Band, or a set of Bands.
static Frequency bandWidthPerChannel()
......................................................................
const CorrelatorBand operator+(const CorrelatorBand &band)
Add two band enumerators.
std::string bandName()
Return string representing this band.
const CorrelatorBand & operator++()
Prefix increment.
unsigned int getBandMax()
Return the maximum number of bands we know about.