Go to the documentation of this file.
57 const std::string& unitName,
unsigned int encoding,
58 unsigned int extraBits,
int indexWidth)
59 : unitName_(unitName),
61 extraBits_(extraBits),
62 indexWidth_(indexWidth),
81 : unitName_(unitName),
84 indexWidth_(indexWidth),
bool hasAttribute(const std::string &name) const
std::string stringAttribute(const std::string &name) const
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
static const std::string OSKEY_UNIT_NAME
ObjectState attribute key for the name of the unit.
SocketCodeTable * parent_
The parent socket code table.
static const std::string OSKEY_ENCODING
ObjectState attribute key for the encoding.
std::string unitName() const
unsigned int extraBits_
The number of extra bits in the encoding.
unsigned int extraBits() const
int indexWidth_
The width of the register index in the port code.
static const std::string OSKEY_MAX_INDEX
ObjectState attribute key for the max-index attribute.
PortCode(const std::string &unitName, unsigned int encoding, unsigned int extraBits, int indexWidth)
unsigned maxRegIndex_
In case this is set to non-zero, the whole width of the index field is not used because the number of...
void setParent(SocketCodeTable *parent)
int encodingWidth() const
find Finds info of the inner loops in the false
std::string unitName_
Name of the unit.
static const std::string OSKEY_INDEX_WIDTH
ObjectState attribute key for the widht of register index.
unsigned int encoding_
The encoding.
int intAttribute(const std::string &name) const
SocketCodeTable * parent() const
static const std::string OSNAME_PORT_CODE
ObjectState name for PortCode.
unsigned int encoding() const
virtual ObjectState * saveState() const
bool hasEncoding_
Tells whether the port code has an encoding.
void setAttribute(const std::string &name, const std::string &value)