Package CyberRail :: Package common :: Package cyberrail :: Package formats :: Module trackset :: Class TrackSet
[hide private]
[frames] | no frames]

Class TrackSet

source code


Instance Methods [hide private]
 
__init__(self, editor)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
buildDoc(self) source code
 
save(self, filename) source code
 
_loadTrackTiles(self, tilesData, private_attributes, handle_exception) source code
 
getTipsForTip(self, tip, switch=False)
Return a set of tile tips that will match the given tip @param tip the tip to match with @param switch true if the tiles have to form a switch @return a set
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
loadTrackSet(class_, fh, private_attributes=frozenset(), error_handling="strict")
Load a track set.
source code
Class Variables [hide private]
  meta_attributes = frozenset(("author", "creationDate", "descri...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, editor)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

loadTrackSet(class_, fh, private_attributes=frozenset(), error_handling="strict")
Class Method

source code 

Load a track set.

@param fh a file handler @param private_attributes privates data that will be loaded in the according attributes, as a collection @param error_handling

  • "strict" (default): raise Exception when something goes wrong
  • None: load as much as possible
  • a callable: will be called with the encountered exception if return is True, dismiss the Exception else raises it (like the __exit__ method of the with statement).

@return a TrackSet instance


Class Variable Details [hide private]

meta_attributes

Value:
frozenset(("author", "creationDate", "description", "generator", "name\
", "version", "type", "uid",))