Atlas 0.7.0
Networking protocol for the Worldforge system.
atlas.transport.file.File Class Reference

Public Member Functions

def __init__ (self, name, mode="r", codec_id=None)
 
def send_string (self, str)
 
def operation_received (self, op)
 
def read_object (self)
 
def write_object (self, obj)
 
def check_negotiation_ok (self)
 
def read_all_as_list (self)
 
def read_all_as_dict (self)
 
def read_and_analyse_all (self)
 
def close (self)
 

Public Attributes

 name
 
 fp
 
 mode
 
 objects
 
 bridge
 
 codec_id
 
 other_negotiation
 

Detailed Description

client for reading/writing files: currently only read support

Definition at line 28 of file file.py.

Constructor & Destructor Documentation

◆ __init__()

def atlas.transport.file.File.__init__ (   self,
  name,
  mode = "r",
  codec_id = None 
)

Definition at line 30 of file file.py.

Member Function Documentation

◆ check_negotiation_ok()

def atlas.transport.file.File.check_negotiation_ok (   self)

Definition at line 67 of file file.py.

◆ close()

def atlas.transport.file.File.close (   self)

Definition at line 99 of file file.py.

◆ operation_received()

def atlas.transport.file.File.operation_received (   self,
  op 
)

Definition at line 52 of file file.py.

Referenced by atlas.transport.bridge.Bridge.log().

◆ read_all_as_dict()

def atlas.transport.file.File.read_all_as_dict (   self)

Definition at line 80 of file file.py.

◆ read_all_as_list()

def atlas.transport.file.File.read_all_as_list (   self)

Definition at line 71 of file file.py.

◆ read_and_analyse_all()

def atlas.transport.file.File.read_and_analyse_all (   self)

Definition at line 89 of file file.py.

◆ read_object()

def atlas.transport.file.File.read_object (   self)

Definition at line 55 of file file.py.

◆ send_string()

def atlas.transport.file.File.send_string (   self,
  str 
)

Definition at line 45 of file file.py.

Referenced by atlas.transport.bridge.Bridge.log().

◆ write_object()

def atlas.transport.file.File.write_object (   self,
  obj 
)

Definition at line 64 of file file.py.

Member Data Documentation

◆ bridge

atlas.transport.file.File.bridge

Definition at line 36 of file file.py.

◆ codec_id

atlas.transport.file.File.codec_id

Definition at line 39 of file file.py.

◆ fp

atlas.transport.file.File.fp

Definition at line 32 of file file.py.

◆ mode

◆ name

atlas.transport.file.File.name

Definition at line 31 of file file.py.

Referenced by atlas.codecs.bach.BachParser.eos().

◆ objects

◆ other_negotiation

atlas.transport.file.File.other_negotiation

Definition at line 43 of file file.py.


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