void ConvertDictionary(const string inputFileName, const string outputFileName, const string formatFrom, const string formatTo) { SerializableDictPtr dictFrom = LoadDictionary(formatFrom, inputFileName); SerializableDictPtr dictTo = ConvertDictionary(formatTo, dictFrom); dictTo->SerializeToFile(outputFileName); }
void ConvertDictionary(const string inputFileName, const string outputFileName, const string formatFrom, const string formatTo) { SerializableDictPtr dictFrom = CreateDictionary(formatFrom); SerializableDictPtr dictTo = CreateDictionary(formatTo); dictFrom->LoadFromFile(inputFileName); dictTo->LoadFromDict(dictFrom.get()); dictTo->SerializeToFile(outputFileName); }