6 qicore = qi.module(
'qicore')
8 log = qi.Logger(
"qicore.file.example.AliceServices.ImageStore")
24 log.info(
"Storing '{0}' file ...".format(name))
30 qicore.copyToLocal(image_file, temp_file_path)
41 log.info(
"Getting '{0}' file ...".format(name))
45 log.info(
"'{0}' found at {1}".format(name, file_location))
48 return qicore.openLocalFile(file_location)
54 return "./temp_image_file_{0}.data".format(self.
counter)
59 log.info(
"'{0}' stored at {1}".format(name, path))
69 session.registerService(
"ImageStore",
ImageStore())