119 std::map<uint32_t, UanTxModeItem>::iterator it =
m_modes.begin ();
121 for (; it !=
m_modes.end (); it++)
123 if ((*it).second.m_name == name)
133 uint32_t dataRateBps,
147 NS_LOG_WARN (
"Redefining UanTxMode with name \"" << name <<
"\"");
172 << uid <<
", >= m_nextUid");
181 std::map<uint32_t, UanTxModeItem>::iterator it =
m_modes.begin ();
182 for (; it !=
m_modes.end (); it++)
184 if ((*it).second.m_name == name)
189 NS_FATAL_ERROR (
"Unknown mode, \"" << name <<
"\", requested from mode factory");
243 std::vector<UanTxMode>::iterator it =
m_modes.begin ();
244 for (uint32_t i = 0; i < modeNum; i++)
270 for (uint32_t i = 0; i < ml.
m_modes.size (); i++)
286 is.setstate (std::ios_base::failbit);
291 for (
int i = 0; i < numModes && !is.eof (); i++)
296 is.setstate (std::ios_base::failbit);
std::istream & operator>>(std::istream &is, Angles &a)
uint32_t GetNModes(void) const
std::string GetName(void) const
#define NS_ASSERT(condition)
#define NS_LOG_COMPONENT_DEFINE(name)
static UanTxMode GetMode(std::string name)
Container for UanTxModes.
std::map< uint32_t, UanTxModeItem > m_modes
static UanTxModeFactory & GetFactory(void)
ModulationType GetModType(void) const
static UanTxMode CreateMode(UanTxMode::ModulationType type, uint32_t dataRateBps, uint32_t phyRateSps, uint32_t cfHz, uint32_t bwHz, uint32_t constSize, std::string name)
#define NS_FATAL_ERROR(msg)
fatal error handling
uint32_t GetDataRateBps(void) const
UanTxModeItem & GetModeItem(uint32_t uid)
UanTxMode::ModulationType m_type
Abstraction of packet modulation information.
std::ostream & operator<<(std::ostream &os, const Angles &a)
UanTxMode operator[](uint32_t index) const
uint32_t GetCenterFreqHz(void) const
uint32_t GetPhyRateSps(void) const
void AppendMode(UanTxMode mode)
UanTxMode MakeModeFromItem(const UanTxModeItem &item)
uint32_t GetConstellationSize(void) const
ATTRIBUTE_HELPER_CPP(ObjectFactory)
uint32_t GetBandwidthHz(void) const
bool NameUsed(std::string name)
uint32_t GetUid(void) const
std::vector< UanTxMode > m_modes
void DeleteMode(uint32_t num)
delete mode at given index