Module antiparser :: Class apLong
[frames | no frames]

Class apLong

apObject --+
           |
          apLong


apLong represents the short 32-bit C data type.
Method Summary
  __init__(self)
Constructor that is called when the class is instantiated.
  getSigned(self)
Returns the value of the signed field for the data object.
  setSigned(self, signed)
Sets the value of the signed field for the data object.
    Inherited from apObject
  display(self)
Print the data object.
  getByteOrder(self)
Returns the byteorder property of the data object.
  getContent(self)
Returns the content of the data object.
  getDebug(self)
Returns the debugging status of the data object.
  getMaxSize(self)
Gets the maxsize property of the data object.
  getMinSize(self)
Returns the minsize property of the data object.
  getMode(self)
Returns the mode that is currently enabled for the data object.
  getOptional(self)
Return the optional property value of the data object.
  getStatic(self)
Returns the static property value of the data object.
  setByteOrder(self, byteorder)
Sets the byteorder property of the data object to "big" or "little" endian.
  setContent(self, content)
Sets the content of the data object.
  setDebug(self, debug)
Sets the debugging status to True or False.
  setMaxSize(self, maxsize)
Sets the maxsize property of the data object to an integer.
  setMinSize(self, minsize)
Sets the minsize property of the data object to an integer.
  setMode(self, mode)
Sets the mode for the data object.
  setOptional(self, optional)
Sets the optional property of the data object to True or False.
  setStatic(self, static)
Sets the static property of the data object to True or False.

Method Details

__init__(self)
(Constructor)

Constructor that is called when the class is instantiated.
Overrides:
antiparser.apObject.__init__ (inherited documentation)

getSigned(self)

Returns the value of the signed field for the data object.

setSigned(self, signed)

Sets the value of the signed field for the data object.

signed defaults to unsigned, which is represented by an argument of False. If signed is set to True, the minsize and maxsize attributes are adjusted to the minimum and maximum value for the signed data type. Therefore, if these properties need to be changed, this should be done after setting the signed field.

Generated by Epydoc 2.1 on Wed Aug 17 09:02:50 2005 http://epydoc.sf.net
SourceForge.net Logo