16#ifndef included_Retro_RlinkAddrMap
17#define included_Retro_RlinkAddrMap 1
28 typedef std::map<std::string, uint16_t>
nmap_t;
29 typedef std::map<uint16_t, std::string>
amap_t;
36 bool Insert(
const std::string& name, uint16_t addr);
37 bool Erase(
const std::string& name);
38 bool Erase(uint16_t addr);
40 bool Find(
const std::string& name, uint16_t& addr)
const;
41 bool Find(uint16_t addr, std::string& name)
const;
48 void Print(std::ostream& os,
int ind=0)
const;
49 void Dump(std::ostream& os,
int ind=0,
const char* text=0,
size_t MaxNameLength() const
FIXME_docs.
nmap_t fNameMap
name->addr map
const nmap_t & Nmap() const
FIXME_docs.
const amap_t & Amap() const
FIXME_docs.
size_t fMaxLength
max name length
amap_t fAddrMap
addr->name map
bool Erase(const std::string &name)
FIXME_docs.
std::map< std::string, uint16_t > nmap_t
std::map< uint16_t, std::string > amap_t
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
~RlinkAddrMap()
Destructor.
bool Insert(const std::string &name, uint16_t addr)
FIXME_docs.
bool Find(const std::string &name, uint16_t &addr) const
FIXME_docs.
void Print(std::ostream &os, int ind=0) const
FIXME_docs.
RlinkAddrMap()
Default constructor.
Declaration of class ReventLoop.