// Get the full output file name. Uses the name of the course, removes bad characters, // checks for duplication of the map file name. Puts in the directory given in the creationSettings. string CreateOutputFileName(CourseDesignator courseDesignator) { string extension; if (creationSettings.fileFormat.kind == MapFileFormatKind.OpenMapper) { if (creationSettings.fileFormat.subKind == OpenMapperSubKind.XMap) { extension = ".xmap"; } else { extension = ".omap"; } } else { extension = ".ocd"; } string basename = QueryEvent.CreateOutputFileName(eventDB, courseDesignator, creationSettings.filePrefix, "", extension); return(Path.GetFullPath(Path.Combine(creationSettings.outputDirectory, basename))); }
// Get the full output file name. Uses the name of the course, removes bad characters, // checks for duplication of the map file name. Puts in the directory given in the creationSettings. string CreateOutputFileName(CourseDesignator courseDesignator) { string basename = QueryEvent.CreateOutputFileName(eventDB, courseDesignator, coursePdfSettings.filePrefix, "", ".pdf"); return(Path.GetFullPath(Path.Combine(coursePdfSettings.outputDirectory, basename))); }
// Get the full output file name. Uses the name of the course, removes bad characters, // checks for duplication of the map file name. Puts in the directory given in the creationSettings. string CreateOutputFileName(CourseDesignator courseDesignator) { string basename = QueryEvent.CreateOutputFileName(eventDB, courseDesignator, bitmapCreationSettings.filePrefix, "", GetFileExtension()); return(Path.GetFullPath(Path.Combine(bitmapCreationSettings.outputDirectory, basename))); }