Go to the documentation of this file.
67 const std::string& name,
unsigned int encoding,
unsigned int extraBits,
69 :
Encoding(encoding, extraBits, NULL), name_(name), socketCodes_(NULL) {
89 :
Encoding(state, &parent), name_(
""), socketCodes_(NULL) {
90 const string procName =
"SocketEncoding::SocketEncoding";
100 __FILE__, __LINE__, procName);
108 __FILE__, __LINE__, procName, exception.
errorMessage());
225 unsigned int oldEncoding = this->
encoding();
226 unsigned int oldExtrabits = this->
extraBits();
317 if (this->
parent() ==
nullptr) {
bool hasAttribute(const std::string &name) const
std::string stringAttribute(const std::string &name) const
void setSocketCodes(SocketCodeTable &codeTable)
virtual int bitPosition() const
virtual ObjectState * saveState() const
void setEncoding(unsigned int encoding, unsigned int extraBits)
void setParent(InstructionField *parent)
InstructionField * parent() const
virtual ~SocketEncoding()
int socketCodePosition() const
virtual int width() const
void setName(const std::string &name)
SocketCodeTable & socketCodeTable(int index) const
void removeSocketEncoding(SocketEncoding &encoding)
#define assert(condition)
static const std::string OSKEY_SC_TABLE
ObjectState attribute key for the name of the socket code table.
static const std::string OSNAME_SOCKET_ENCODING
ObjectState name for socket encoding.
void setEncoding(unsigned int encoding, unsigned int extraBits)
std::string socketName() const
virtual int width() const
SocketEncoding(const std::string &name, unsigned int encoding, unsigned int extraBits, SlotField &parent)
bool hasSocketCodes() const
static NullSocketCodeTable & instance()
unsigned int encoding() const
std::string errorMessage() const
void addSocketEncoding(SocketEncoding &encoding)
virtual ObjectState * saveState() const
int socketIDWidth() const
int socketIDPosition() const
BinaryEncoding * parent() const
SlotField * parent() const
SocketCodeTable * socketCodes_
Socket code table.
std::string name_
Name of the socket.
SocketCodeTable & socketCodes() const
MoveSlot * parent() const
unsigned int extraBits() const
void setAttribute(const std::string &name, const std::string &value)
static const std::string OSKEY_SOCKET_NAME
ObjectState attribute key for the name of the socket.