Atlas  0.7.0
Networking protocol for the Worldforge system.
atlas.codecs.packed.PackedParser Class Reference
Inheritance diagram for atlas.codecs.packed.PackedParser:
Collaboration diagram for atlas.codecs.packed.PackedParser:

Public Member Functions

def __init__ (self, stream_flag=None)
 
def eos (self)
 
def feed (self, msg)
 
def exec_mode (self)
 
def start_value (self, mode)
 
def end_value (self, value)
 
def push_value (self, initial_value)
 
def pop_value (self)
 
def quote (self)
 
def start_map (self)
 
def end_map (self)
 
def start_list (self)
 
def end_list (self)
 
def start_int (self)
 
def end_int (self)
 
def start_float (self)
 
def end_float (self)
 
def start_string (self)
 
def end_string (self)
 
def name_value (self)
 
def ignore (self)
 
def setup (self, stream_flag=None)
 
def set_stream_mode (self, mode=1)
 
def parse_init (self)
 
def parse_stream (self, msg)
 

Public Attributes

 root_obj
 
 name_stack
 
 obj_stack
 
 mode
 
 quote_on
 
 quote_data
 
 data
 
 msgList
 
 stream_flag
 
 msg
 

Static Public Attributes

dictionary character2method
 

Detailed Description

Definition at line 96 of file packed.py.

Constructor & Destructor Documentation

◆ __init__()

def atlas.codecs.packed.PackedParser.__init__ (   self,
  stream_flag = None 
)

Member Function Documentation

◆ end_value()

◆ eos()

◆ pop_value()

◆ push_value()

def atlas.codecs.packed.PackedParser.push_value (   self,
  initial_value 
)

Member Data Documentation

◆ character2method

dictionary atlas.codecs.packed.PackedParser.character2method
static
Initial value:
= {"+": quote,
"[": start_map,
"]": end_map,
"(": start_list,
")": end_list,
"@": start_int,
"#": start_float,
"$": start_string,
"=": name_value,
"\n": ignore,
"\r": ignore}

Definition at line 209 of file packed.py.

Referenced by atlas.codecs.packed.PackedParser.eos().


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