Go to the documentation of this file.
54 unsigned int encoding,
55 unsigned int extraBits,
57 encoding_(encoding), extraBits_(extraBits), parent_(parent) {
72 : encoding_(0), extraBits_(0), parent_(parent) {
73 const string procName =
"Encoding::Encoding";
static const std::string OSNAME_ENCODING
ObjectState name for Encoding class.
void setEncoding(unsigned int encoding, unsigned int extraBits)
void setParent(InstructionField *parent)
InstructionField * parent() const
virtual int width() const
static const std::string OSKEY_ENCODING
ObjectState attribute key for the encoding.
unsigned int encoding() const
std::string errorMessage() const
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
virtual ObjectState * saveState() const
Encoding(unsigned int encoding, unsigned int extraBits, InstructionField *parent)
InstructionField * parent_
The parent instruction field.
unsigned int encoding_
The encoding.
unsigned int extraBits_
The number of extra bits.
int intAttribute(const std::string &name) const
unsigned int extraBits() const
void setAttribute(const std::string &name, const std::string &value)