# Path: importerClasses.py
# class VersionInfo(object):
# 	def __init__(self):
# 		self.revision = 0
# 		self.minor    = 0
# 		self.major    = 0
# 		self.data     = (0, 0, 0, 0, 0)
# 	def getDisplayName(self):
# 		if (self.major > 11):
# 			return "Version %d.%d%d" %(self.major + 1996, self.minor, self.revision)
# 		return "Version %d.%d%d" %(self.major, self.minor, self.revision)
# 	def getBits(self): return 64 if ((self.data[0] & 0x40)) > 0 else 32
# 	def __str__(self): return "Version %d.%d.%d [%s]" %(self.major, self.minor, self.revision, IntArr2Str(self.data, 2))
# 	def __repr__(self): return self.__str__()


import traceback, io, re
from importerUtils   import *
from importerClasses import VersionInfo
from FreeCAD import BoundBox

		self.sec2 = None
		self.set  = None
		self.exp  = None
	def __str__(self): return "[%s], %s, '%s', [%s]" %(IntArr2Str(self.a1, 4), self.size, self.a2, IntArr2Str(self.a3, 2))

class UFRxAppendix(UFRxObject):
	def __init__(self):
		self.p1 = ()
		self.p2 = 0

class UFRxBOM(UFRxObject):
	def __init__(self):
		self.unit  = ''
		self.name  = ''
		self.repr  = ''
		self.value = 0.0
		self.pad   = 0
	def __str__(self): return "BOM: %s = %s (%04X)" %(self.name, self.repr, self.pad)

def readBoolean(data, offset, log, txt):
	v, i = getBoolean(data, offset)
	log.write("\t%s:\t%s\n" %(txt, v))
	return v, i

def readDateTime(data, offset, log, txt):
	v, i = getDateTime(data, offset)
	log.write("\t%s:\t%s\n" %(txt, v))
	return v, i

def readVersionInfo(data, offset, log, txt):

# Path: importerClasses.py
# class VersionInfo(object):
# 	def __init__(self):
# 		self.revision = 0
# 		self.minor    = 0
# 		self.major    = 0
# 		self.data     = (0, 0, 0, 0, 0)
# 	def getDisplayName(self):
# 		if (self.major > 11):
# 			return "Version %d.%d%d" %(self.major + 1996, self.minor, self.revision)
# 		return "Version %d.%d%d" %(self.major, self.minor, self.revision)
# 	def getBits(self): return 64 if ((self.data[0] & 0x40)) > 0 else 32
# 	def __str__(self): return "Version %d.%d.%d [%s]" %(self.major, self.minor, self.revision, IntArr2Str(self.data, 2))
# 	def __repr__(self): return self.__str__()


# Path: importerUFRxDoc.py
import traceback, io, re
from importerUtils   import *
from importerClasses import VersionInfo
from FreeCAD import BoundBox

		self.sec2 = None
		self.set  = None
		self.exp  = None
	def __str__(self): return "[%s], %s, '%s', [%s]" %(IntArr2Str(self.a1, 4), self.size, self.a2, IntArr2Str(self.a3, 2))

class UFRxAppendix(UFRxObject):
	def __init__(self):
		self.p1 = ()
		self.p2 = 0

class UFRxBOM(UFRxObject):
	def __init__(self):
		self.unit  = ''
		self.name  = ''
		self.repr  = ''
		self.value = 0.0
		self.pad   = 0
	def __str__(self): return "BOM: %s = %s (%04X)" %(self.name, self.repr, self.pad)

def readBoolean(data, offset, log, txt):
	v, i = getBoolean(data, offset)
	log.write("\t%s:\t%s\n" %(txt, v))
	return v, i

def readDateTime(data, offset, log, txt):
	v, i = getDateTime(data, offset)
	log.write("\t%s:\t%s\n" %(txt, v))
	return v, i

def readVersionInfo(data, offset, log, txt):

	v = VersionInfo() # [00 00 18 40 00 00 A0 41]
