public void Convert(string filename) { filename = MakeAbsolute(filename, Environment.CurrentDirectory + "/x"); Message("Loading file: " + filename); LoadPlugins(); if (!handlers.ContainsKey(export)) { Error("Failed to find module " + export); return; } IConvertModule module = handlers[export] as IConvertModule; if (module != null) { module.StartExport(); } name = Path.GetFileNameWithoutExtension(filename); LoadConfig(filename); //load project.xml in root of data hierarchy LoadFile(filename); //load the file ProcessAll("process"); //convert the data Process(export, null); //write out the data }
public void AddModule(string key, IConvertModule module) { mModules.Add(key, module); }