cti.results
index
/home/miyabe/workspaces/copper_drivers/cti.python/src/code/cti/results.py

$Id: results.py 932 2013-05-31 05:28:13Z miyabe $

 
Modules
       
os
tempfile

 
Classes
       
builtins.object
DirectoryResults
SingleResult

 
class DirectoryResults(builtins.object)
    DirectoryResults(dir, prefix='', suffix='')
 
ディレクトリに複数のファイルとして結果を得るためのオブジェクトです。
 
  Methods defined here:
__init__(self, dir, prefix='', suffix='')
結果オブジェクトを作成します。
 
dir: 出力先ディレクトリ
prefix: 結果ファイル名の先頭に付ける文字列
suffix: 結果ファイル名の末尾に付ける文字列
next_builder(self, opts={})

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

 
class SingleResult(builtins.object)
    SingleResult(builder, finish_func=None)
 
単一の結果を得るためのオブジェクトです。
 
  Methods defined here:
__init__(self, builder, finish_func=None)
結果オブジェクトを作成します。
 
builder: Builder オブジェクト
finish_func: 結果が出力される直前に呼び出されるコールバック関数です。引数にハッシュ型として結果に関する情報が渡されます。
ハッシュには'uri', 'mime_type', 'encoding', 'length'というキーでそれぞれURI, MIME型, 文字コード, 結果長さが格納されます。
ただし、'encoding', 'length'は必ずしも提供されません。
next_builder(self, opts={})

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

 
Data
        FRG_MEM_SIZE = 256
ON_MEMORY = 1048576
SEGMENT_SIZE = 8192