コード例 #1
0
ファイル: OutputCtrl.cpp プロジェクト: Duion/Torsion
void OutputCtrl::Clear()
{
   SetReadOnly( false );
   ClearAll();
   SetReadOnly( true );
   m_Selected = -1;

   ClearErrors();
}
コード例 #2
0
ファイル: Error.c プロジェクト: Bytewize/NXTScanNav
void HandleError()
{
  eraseDisplay();
  nxtDisplayCenteredBigTextLine(2, "ERROR");//show selected view number
  nxtDisplayCenteredTextLine(6, sError);
  nxtDisplayCenteredTextLine(7, "Press any key");
  while(nNxtButtonPressed == -1)
    wait10Msec(1);
  ClearErrors();
}
コード例 #3
0
ファイル: Tests.cpp プロジェクト: cedral/crashrptex
bool CTestSuite::Run(std::set<std::string>& SuitesToRun)
{	
    ClearErrors();

    if(GetParentSuite()!=NULL && SuitesToRun.size()!=0)
    {
        std::string sSuiteName;
        std::string sSuiteDescription;
        GetSuiteInfo(sSuiteName, sSuiteDescription);

        // Check if this suite's name is in list
        std::set<std::string>::iterator it = SuitesToRun.find(sSuiteName);
        if(it==SuitesToRun.end())
            return true; // This suite is not in list
    }

    g_pCurTestSuite = this;

    BeforeTest("SetUp");
    SetUp();
    AfterTest("SetUp");

    if(m_bTestFailed)
        m_bSuiteSetUpFailed = true;

    std::vector<std::string> test_list;
    DoWithMyTests(RUN_TESTS, test_list);

    UINT i;
    for(i=0; i<m_apChildSuites.size(); i++)
    {
        m_apChildSuites[i]->Run(SuitesToRun);
    }

    int nErrors = (int)m_asErrorMsg.size();

    g_pCurTestSuite = this;

    if(BeforeTest("TearDown"))
        TearDown();
    AfterTest("TearDown");

    if(nErrors!=(int)m_asErrorMsg.size())
        return false; // TearDown has failed

    g_pCurTestSuite = NULL;

    return m_asErrorMsg.size()==0?true:false;
}
コード例 #4
0
ファイル: CourseCreator.cpp プロジェクト: Fleppensteyn/SE
void CourseCreator::OnSubmitCourse(wxCommandEvent&){
  ClearErrors(); //Clear the errors of the previous creation attempt
  if(course_name->GetValue() == "")
    DisplayError(ERROR_NO_NAME); //No course name was specified
  if(ects->GetValue() == "")
    DisplayError(ERROR_NO_ECTS); //No ects amount specified
  if(course_number->GetValue() == "")
    DisplayError(ERROR_NO_NUMBER);

  if(errors.size() == 0)
    EndModal(wxID_OK);

  for(unsigned int i = 0; i < errors.size(); i++)
    errors[i]->SetForegroundColour(wxColour(wxT("RED")));
}//OnSubmitCourse
コード例 #5
0
void CEScriptDocument::TextChanged()
{
	ClearErrors();

	CComQIPtr<IActiveScriptParse> scriptParse = m_activeScript;
	if (scriptParse)
	{
		HRESULT hr;

		hr = m_activeScript->SetScriptState(SCRIPTSTATE_INITIALIZED);
		if (SUCCEEDED(hr))
		{
			BSTR text;
			m_textData->get_data(&text);

			EXCEPINFO	excepinfo;

			hr = scriptParse->ParseScriptText(
				text,
				NULL,
				NULL,
				NULL,
				0,
				0,
				0,	// Flags
				NULL,
				&excepinfo);

			//m_activeScript->Close();
		}
		else
			ATLASSERT(0);
	}

	Fire_doneParsingDOM();
}
コード例 #6
0
ファイル: CourseCreator.cpp プロジェクト: Fleppensteyn/SE
CourseCreator::~CourseCreator(){
  ClearErrors();
}//~CourseCreator
コード例 #7
0
ファイル: Log.cpp プロジェクト: AntonBogomolov/Models
CLog::~CLog(void)
{
	ClearErrors();
	ClearWarnings();	
}