SG++-Doxygen-Documentation
python.learner.formatter.GridImageFormatter.GridImageFormatter Class Reference
Inheritance diagram for python.learner.formatter.GridImageFormatter.GridImageFormatter:

Public Member Functions

def deserialize (self, serializationStream)
 Deserializes the Grid memento object from the stream. More...
 
def deserializeFromFile (self, filename)
 Deserializes the Grid object from the file. More...
 
def serialize (self, memento, streamserializationStream)
 Serializes grid to the stream. More...
 
def serializeToFile (self, memento, filename)
 Serializes grid to the file. More...
 

Member Function Documentation

◆ deserialize()

def python.learner.formatter.GridImageFormatter.GridImageFormatter.deserialize (   self,
  serializationStream 
)

◆ deserializeFromFile()

def python.learner.formatter.GridImageFormatter.GridImageFormatter.deserializeFromFile (   self,
  filename 
)

Deserializes the Grid object from the file.

The file may or may be not gzip compressed.

Parameters
filenameThe name of file with serialized Grid.
Returns
The Grid memento object.

◆ serialize()

◆ serializeToFile()

def python.learner.formatter.GridImageFormatter.GridImageFormatter.serializeToFile (   self,
  memento,
  filename 
)

Serializes grid to the file.

Parameters
mementothe Grid memento object
filenameThe name of file where the Grid object should be serialized to.

References python.utils.GzipSerializer.GzipSerializer.gzOpen().


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