Atlas 0.7.0
Networking protocol for the Worldforge system.
atlas.codecs.binary1.Binary1Parser Class Reference
Inheritance diagram for atlas.codecs.binary1.Binary1Parser:

Public Member Functions

def __init__ (self)
 
def parse_stream (self, msg)
 
def feed (self, msg)
 
def add_msg (self)
 
def start_value (self, initial_value)
 
def value_done (self)
 
def decode_int_value (self, ch)
 
def init_int_pos (self)
 
def init_int_neg (self)
 
def decode_int (self, ch)
 
def init_float (self, multiplier1, multiplier2)
 
def init_float_pos_pos (self)
 
def init_float_pos_neg (self)
 
def init_float_neg_pos (self)
 
def init_float_neg_neg (self)
 
def decode_float_mantissa (self, ch)
 
def decode_float_exponent (self, ch)
 
def decode_string_length (self, ch)
 
def decode_string_value (self, ch)
 
def init_collection (self, initial_value)
 
def decode_collection_value (self)
 
def decode_list_length (self, ch)
 
def decode_map_length (self, ch)
 

Public Attributes

 stack
 
 msgList
 
 mantissa
 

Static Public Attributes

def init_length = init_int_pos
 
dictionary type2init
 
dictionary type2decoder
 

Detailed Description

Definition at line 145 of file binary1.py.

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ add_msg()

def atlas.codecs.binary1.Binary1Parser.add_msg (   self)

Definition at line 176 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ decode_collection_value()

def atlas.codecs.binary1.Binary1Parser.decode_collection_value (   self)

Definition at line 272 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ decode_float_exponent()

def atlas.codecs.binary1.Binary1Parser.decode_float_exponent (   self,
  ch 
)

Definition at line 242 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ decode_float_mantissa()

def atlas.codecs.binary1.Binary1Parser.decode_float_mantissa (   self,
  ch 
)

Definition at line 236 of file binary1.py.

◆ decode_int()

def atlas.codecs.binary1.Binary1Parser.decode_int (   self,
  ch 
)

Definition at line 220 of file binary1.py.

◆ decode_int_value()

def atlas.codecs.binary1.Binary1Parser.decode_int_value (   self,
  ch 
)

Definition at line 201 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ decode_list_length()

def atlas.codecs.binary1.Binary1Parser.decode_list_length (   self,
  ch 
)

Definition at line 278 of file binary1.py.

◆ decode_map_length()

def atlas.codecs.binary1.Binary1Parser.decode_map_length (   self,
  ch 
)

Definition at line 282 of file binary1.py.

◆ decode_string_length()

def atlas.codecs.binary1.Binary1Parser.decode_string_length (   self,
  ch 
)

Definition at line 249 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ decode_string_value()

def atlas.codecs.binary1.Binary1Parser.decode_string_value (   self,
  ch 
)

Definition at line 257 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ feed()

def atlas.codecs.binary1.Binary1Parser.feed (   self,
  msg 
)

◆ init_collection()

def atlas.codecs.binary1.Binary1Parser.init_collection (   self,
  initial_value 
)

Definition at line 264 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ init_float()

def atlas.codecs.binary1.Binary1Parser.init_float (   self,
  multiplier1,
  multiplier2 
)

Definition at line 224 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ init_float_neg_neg()

def atlas.codecs.binary1.Binary1Parser.init_float_neg_neg (   self)

Definition at line 234 of file binary1.py.

◆ init_float_neg_pos()

def atlas.codecs.binary1.Binary1Parser.init_float_neg_pos (   self)

Definition at line 232 of file binary1.py.

◆ init_float_pos_neg()

def atlas.codecs.binary1.Binary1Parser.init_float_pos_neg (   self)

Definition at line 230 of file binary1.py.

◆ init_float_pos_pos()

def atlas.codecs.binary1.Binary1Parser.init_float_pos_pos (   self)

Definition at line 228 of file binary1.py.

◆ init_int_neg()

def atlas.codecs.binary1.Binary1Parser.init_int_neg (   self)

Definition at line 217 of file binary1.py.

◆ init_int_pos()

def atlas.codecs.binary1.Binary1Parser.init_int_pos (   self)

Definition at line 214 of file binary1.py.

◆ parse_stream()

def atlas.codecs.binary1.Binary1Parser.parse_stream (   self,
  msg 
)

Definition at line 155 of file binary1.py.

◆ start_value()

def atlas.codecs.binary1.Binary1Parser.start_value (   self,
  initial_value 
)

◆ value_done()

def atlas.codecs.binary1.Binary1Parser.value_done (   self)

Definition at line 184 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

Member Data Documentation

◆ init_length

def atlas.codecs.binary1.Binary1Parser.init_length = init_int_pos
static

Definition at line 247 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ mantissa

atlas.codecs.binary1.Binary1Parser.mantissa

Definition at line 238 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ msgList

◆ stack

atlas.codecs.binary1.Binary1Parser.stack

◆ type2decoder

dictionary atlas.codecs.binary1.Binary1Parser.type2decoder
static
Initial value:
= {encode_pos_int(int_pos_type): decode_int,
encode_pos_int(int_neg_type): decode_int,
encode_pos_int(float_pos_pos_type): decode_float_mantissa,
encode_pos_int(float_pos_neg_type): decode_float_mantissa,
encode_pos_int(float_neg_pos_type): decode_float_mantissa,
encode_pos_int(float_neg_neg_type): decode_float_mantissa,
encode_pos_int(string_type): decode_string_length,
encode_pos_int(list_type): decode_list_length,
encode_pos_int(map_type): decode_map_length,
encode_pos_int(variable_string_type): decode_string_length,
encode_pos_int(variable_list_type): decode_list_length,
encode_pos_int(variable_map_type): decode_map_length}

Definition at line 300 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().

◆ type2init

dictionary atlas.codecs.binary1.Binary1Parser.type2init
static
Initial value:
= {encode_pos_int(int_pos_type): init_int_pos,
encode_pos_int(int_neg_type): init_int_neg,
encode_pos_int(float_pos_pos_type): init_float_pos_pos,
encode_pos_int(float_pos_neg_type): init_float_pos_neg,
encode_pos_int(float_neg_pos_type): init_float_neg_pos,
encode_pos_int(float_neg_neg_type): init_float_neg_neg,
encode_pos_int(string_type): init_length,
encode_pos_int(list_type): init_length,
encode_pos_int(map_type): init_length,
encode_pos_int(variable_string_type): init_length,
encode_pos_int(variable_list_type): init_length,
encode_pos_int(variable_map_type): init_length}

Definition at line 287 of file binary1.py.

Referenced by atlas.codecs.binary1.Binary1Parser.__init__().


The documentation for this class was generated from the following file: