def write(self): logging.debug("Creating "+self.name+"...") out = "/*! @file "+os.path.split(self.filename)[1]+" */" for include in self.includes: out += "\n"+Convert.include(include) for namespace in self.namespaces: out += "\n"+Convert.namespace(namespace) out += "\n"+self.writeRecursive(None,self.elements) self.file.write(out) self.file.close()