Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

bool Impala::Application::IDo::AskUserPermission ( CString  cmdLine  )  [inline, private]

Definition at line 2488 of file mainIDo.cpp.

References mInteractive.

Referenced by CallSystem(), and HandleCmd().

02489     {
02490         if (!mInteractive)
02491             return true;
02492 
02493         char buf[0x100];
02494         while(1)
02495         {
02496             std::cout << "[" << cmdLine << "] Execute? [nY] " << std::endl;
02497             buf[0] = '\0';
02498             std::cin.getline(buf, 0x100, '\n');
02499             if ((buf[0] == 'n') || (buf[0] == 'N'))
02500                 return false;
02501             if ((buf[0] == 'y') || (buf[0] == 'Y') || (buf[0] == '\0'))
02502                 return true;
02503             std::cout << "Invalid input...";
02504         }
02505     }


Generated on Thu Jan 13 09:14:27 2011 for ImpalaSrc by  doxygen 1.5.1