Go to the documentation of this file.
70 : parent_(NULL), name_(name), extraBits_(0) {
87 : parent_(&parent), name_(
""), extraBits_(0) {
156 const string procName =
"SocketCodeTable::setName";
176 const string procName =
"SocketCodeTable::setExtraBits";
177 throw OutOfRange(__FILE__, __LINE__, procName);
250 const string procName =
"SocketCodeTable::addFUPortCode";
310 const string procName =
"SocketCodeTable::fuPortCode";
311 throw OutOfRange(__FILE__, __LINE__, procName);
327 const std::string& fu,
328 const std::string& port)
const {
346 const std::string& fu,
347 const std::string& port,
348 const std::string& operation)
const {
366 const std::string& fu,
367 const std::string& port)
const {
370 for (
int i = 0; i < codes; i++) {
395 const std::string& fu,
396 const std::string& port,
397 const std::string& operation)
const {
400 for (
int i = 0; i < codes; i++) {
430 const string procName =
"SocketCodeTable::addRFPortCode";
486 const string procName =
"SocketCodeTable::rfPortCode";
487 throw OutOfRange(__FILE__, __LINE__, procName);
518 for (
int i = 0; i < codes; i++) {
546 const string procName =
"SocketCodeTable::addIUPortCode";
602 const string procName =
"SocketCodeTable::iuPortCode";
603 throw OutOfRange(__FILE__, __LINE__, procName);
634 for (
int i = 0; i < codes; i++) {
636 if (code.
unitName() == immediateUnit) {
694 for (
int i = 0; i < state->
childCount(); i++) {
705 const string procName =
"SocketCodeTable::loadState";
void removeReferences(SlotField &field) const
std::string operationName() const
std::string stringAttribute(const std::string &name) const
int rfPortCodeCount() const
RFPortCodeTable rfPortCodes_
RF port codes.
SocketCodeTable(const std::string &name, BinaryEncoding &parent)
void addIUPortCode(IUPortCode &code)
static NullIUPortCode & instance()
FUPortCode & fuPortCode(int index) const
bool containsPortCode() const
bool hasRFPortCode(const std::string ®File) const
void removeRFPortCode(RFPortCode &code)
void setExtraBits(int bits)
int socketCodeTableCount() const
RFPortCode & rfPortCode(int index) const
int fuPortCodeCount() const
FUPortCodeTable fuPortCodes_
FU port codes.
static const std::string OSNAME_RF_PORT_CODE
ObjectState name for RF port code.
static const std::string OSNAME_FU_PORT_CODE
ObjectState name for FU port code.
SocketEncoding & socketEncoding(int index) const
SocketCodeTable & socketCodeTable(int index) const
int portCodeCount() const
void removeIUPortCode(IUPortCode &code)
virtual ObjectState * saveState() const
std::string unitName() const
#define assert(condition)
BinaryEncoding * parent() const
unsigned int extraBits() const
virtual void loadState(const ObjectState *state)
#define THROW_EXCEPTION(exceptionType, message)
Exception wrapper macro that automatically includes file name, line number and function name where th...
virtual ObjectState * saveState() const
IUPortCode & iuPortCode(int index) const
ObjectState * child(int index) const
void addChild(ObjectState *child)
bool hasFUPortCode(const std::string &fu, const std::string &port) const
bool hasRFOrIUPortCodeWithoutEncoding() const
static NullRFPortCode & instance()
bool hasIUPortCode(const std::string &immediateUnit) const
void removeSocketCodeTable(SocketCodeTable &table)
SourceField & sourceField() const
static const std::string OSKEY_NAME
ObjectState attribute key for name of the table.
static bool canAddPortEncoding(SocketCodeTable &table, unsigned int encoding, unsigned int extraBits)
void setName(const std::string &name)
void addFUPortCode(FUPortCode &code)
virtual ObjectState * saveState() const
BinaryEncoding * parent_
The parent binary encoding map.
int iuPortCodeCount() const
std::string name_
Name of the table.
static const std::string OSNAME_IU_PORT_CODE
ObjectState name for RF port code.
bool hasOperation() const
IUPortCodeTable iuPortCodes_
IU port codes.
void addSocketCodeTable(SocketCodeTable &table)
static const std::string OSNAME_SOCKET_CODE_TABLE
ObjectState name for socket code table.
int socketEncodingCount() const
int intAttribute(const std::string &name) const
virtual ObjectState * saveState() const
MoveSlot & moveSlot(int index) const
PortCode & portCode(int index) const
DestinationField & destinationField() const
SocketCodeTable * parent() const
bool hasParentSCTable(const std::string &name) const
int extraBits_
The number of extra bits.
virtual ~SocketCodeTable()
int moveSlotCount() const
void addRFPortCode(RFPortCode &code)
SocketCodeTable & socketCodes() const
unsigned int encoding() const
static NullFUPortCode & instance()
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
void setAttribute(const std::string &name, const std::string &value)
std::string portName() const
void removeFUPortCode(FUPortCode &code)