Ejemplo n.º 1
0
 def __init__(self, name_id, biiType, version_id=None, language_version=None, os_info=None,
              tool_info=None, path=""):
     self.name_id = name_id
     self.biiType = biiType
     self.__version_id = version_id
     self.__language_version = language_version or Version()
     self.os_info = os_info or OSInfo()
     self.tool_info = tool_info or ToolInfo()
     self.path = path
Ejemplo n.º 2
0
 def deserialize(data):
     return SystemID(
         data[SystemID.SERIAL_NAME_ID_KEY],
         version_id=Version.deserialize(data[SystemID.SERIAL_VERSION_ID_KEY]),
         biiType=BiiType.deserialize(data[SystemID.SERIAL_BIITYPE_KEY]),
         language_version=Version.deserialize(data[SystemID.SERIAL_LANGUAGE_VERSION_KEY]),
         os_info=OSInfo.deserialize(data[SystemID.SERIAL_OS_INFO_KEY]),
         tool_info=ToolInfo.deserialize(data[SystemID.SERIAL_TOOL_INFO_KEY]),
         path=data[SystemID.SERIAL_PATH_KEY],
     )
Ejemplo n.º 3
0
 def tool_info_serialization_test(self):
     tool = ToolInfo()
     serial = tool.serialize()
     deserial = ToolInfo.deserialize(serial)
     self.assertEquals(tool, deserial)
Ejemplo n.º 4
0
 def tool_info_serialization_test(self):
     tool = ToolInfo()
     serial = tool.serialize()
     deserial = ToolInfo.deserialize(serial)
     self.assertEquals(tool, deserial)
Ejemplo n.º 5
0
 def __init__(self, family=None, subfamily=None, version=None, code=None, arch=None):
     ToolInfo.__init__(self, BuilderFamily(family), subfamily, version, code, arch)
Ejemplo n.º 6
0
 def __init__(self, family=None, subfamily=None, version=None, code=None, arch=None):
     if subfamily:
         subfamily = CompilerSubFamily(subfamily)
     ToolInfo.__init__(self, CompilerFamily(family), subfamily, version, code, arch)