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

Class apCString

apObject --+    
           |    
    apString --+
               |
              apCString


apCString represents a C style string, ie: an array of chars appended by a null.

apCString inherits all of its methods from the apString class. The only difference is that apCString object content is terminated with a null character in the antiparser payload.
Method Summary
  __init__(self)
Constructor that is called when the class is instantiated.
    Inherited from apString
  getContentSize(self)
Returns the length of the current content.
  getIllegalChars(self)
Returns a list of illegal characters.
  getTerminator(self)
Returns a terminator string.
  setIllegalChars(self, chars)
Sets a string of illegal characters.
  setTerminator(self, terminator)
Sets a terminator string 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.apString.__init__ (inherited documentation)

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