Package twisted :: Package world :: Module structfile :: Class StructuredFile
[show private | hide private]
[frames | no frames]

Class StructuredFile


I am a file of fixed-length records.
Method Summary
  __init__(self, nameOrFile, *instructure, **opts)
return StructuredFile(self.fl, offset=self.offset+(begin * self.size), maxLength=end-begin, *self.instructure)
  __getitem__(self, at)
  __getslice__(self, begin, end)
  __iter__(self, begin, end)
  __len__(self)
  __setitem__(self, at, tup)
  __setslice__(self, begin, end, value, valueLen)
  append(self, tup)
  checkLength(self, at)
  close(self)
  copyBlock(self, beginFrom, beginTo, length)
  dumpHTML(self, f)
  expand(self, itemcount)
  flush(self)
  getAll(self, at)
  getAt(self, at, field)
  getColumnIndex(self, field)
  getiterslice(self, begin, end)
  setAll(self, at, *all)
  setAt(self, at, field, value)
  setiterslice(self, begin, end, value, valueLen)
integer xtype(x)

Class Variable Summary
str fmchar
dict typeToFormatChar
dict typeToSize
str VERSION_IDENTIFIER

Method Details

__init__(self, nameOrFile, *instructure, **opts)
(Constructor)

return StructuredFile(self.fl, offset=self.offset+(begin * self.size),
                      maxLength=end-begin,
                      *self.instructure)

xtype(x)

Normalize Boolean: return True (1) when x is true, False (0) otherwise.
Returns:
integer

Class Variable Details

fmchar

Type:
str
Value:
'b'                                                                    

typeToFormatChar

Type:
dict
Value:
{<built-in function bool>: 'b',
 <type 'float'>: 'd',
 <type 'int'>: 'i',
 <type 'long'>: 'q'}                                                   

typeToSize

Type:
dict
Value:
{<built-in function bool>: 1,
 <type 'float'>: 8,
 <type 'int'>: 4,
 <type 'long'>: 8}                                                     

VERSION_IDENTIFIER

Type:
str
Value:
'SF01'                                                                 

Generated by Epydoc 1.1 on Fri Jun 27 03:46:30 2003 http://epydoc.sf.net