//---------------------------------------------------------------------
void TConfiguration::SetLogToFile(bool Value)
{
  if (Value != GetLogToFile())
  {
    SetLogFileName(Value ? GetDefaultLogFileName() : UnicodeString(L""));
    Changed();
  }
}
string CCommonSeqReference::GetKeyPrefix( string& strFileName )
{
    if (!m_mapReference.count(strFileName))
    {
        ofstream logFile("NoReferInfo.txt",ios_base::out | ios_base::app);
        logFile<<strFileName<<"无Keyprefix"<<endl;
        logFile.close();

        if(GetLogToFile())
        {
            stringstream strExp;
            strExp << strFileName << "无Keyprefix";
            PrintLog(strExp.str());
        }

        return "没有Keyprefix信息";
    }
    return m_mapReference[strFileName].m_strPreFix;
}