sbsobject module
Module sbsobject provides the definition of a SBSObject, the base class for all objects of a .sbs package.
- class common_interfaces.sbsobject.SBSObject
Bases:
SBSARObjectAbstract class used to provide a common interface for all derived SBSObjects, and to ensure that each derived object implements the functions ‘parse’ and ‘write’
- equals(other)
Check if this SBSObject is equivalent to the other SBSObject. Some members may be excluded from this check, the UIDs or GUILayout for instance.
- getUidIsUsed(aUID)
Check if the given uid is already used in the context of this SBSObject.
- Parameters:
aUID (str) – UID to check
- Returns:
True if the uid is already used, False otherwise
- Raise:
AttributeError if the function getUidIsUsed in not properly overloaded on this SBSObject
- abstractmethod parse(aContext, aDirAbsPath, aSBSParser, aXmlNode)
Parse recursively the given xml node to retrieve the content of the SBSObject.
- class common_interfaces.sbsobject.UIDGenerator
Bases:
objectClass used to generate unique ID for new
SBSObjects, in the context of their parent.