def write_hpp(self, file):
		d = os.path.dirname(file)
		if not os.path.exists(d):
			os.makedirs(d)
		f = open(file, 'w')
		(ignored, filename) = os.path.split(file)
		name = filename.upper().replace('.', '_')

		f.write('#ifndef %s\n'%name)
		f.write('#define %s\n'%name)