Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 class BufferStatus:
00022 """
00023 """
00024
00025 BUFFER_OK = 0
00026 BUFFER_ERROR = 1
00027 BUFFER_FULL = 2
00028 BUFFER_EMPTY = 3
00029 NOT_SUPPORTED = 4
00030 TIMEOUT = 5
00031 PRECONDITION_NOT_MET = 6
00032
00033 def toString(self, status):
00034 str = ["BUFFER_OK",
00035 "BUFFER_ERROR",
00036 "BUFFER_FULL",
00037 "BUFFER_EMPTY",
00038 "NOT_SUPPORTED",
00039 "TIMEOUT",
00040 "PRECONDITION_NOT_MET"]
00041 return str[status]