Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

StringInputControl.cc

Go to the documentation of this file.
00001 #include "StringInputControl.h"
00002 #include "Wireless/Wireless.h"
00003 #include "Motion/MMAccessor.h"
00004 #include "Motion/LedMC.h"
00005 #include "Motion/MotionManager.h"
00006 
00007 ControlBase* StringInputControl::activate(MotionManager::MC_ID disp_id, Socket* gui) {
00008   display_id=disp_id;
00009   gui_comm=gui;
00010   return doReadStdIn(userPrompt);
00011 }
00012 
00013 void StringInputControl::refresh() {
00014   ControlBase::doReadStdIn(userPrompt);
00015 }
00016 
00017 ControlBase* StringInputControl::doReadStdIn(const std::string& prompt/*=std::string()*/) {
00018   if(prompt.size()==0)
00019     return ControlBase::doReadStdIn(userPrompt);
00020   else
00021     return ControlBase::doReadStdIn(prompt);
00022 }
00023 
00024 /*! @file
00025  * @brief Implements StringInputControl, which prompts for and stores a string from the user
00026  * @author ejt (Creator)
00027  *
00028  * $Author: ejt $
00029  * $Name: tekkotsu-1_4_1 $
00030  * $Revision: 1.3 $
00031  * $State: Exp $
00032  * $Date: 2003/06/12 23:41:36 $
00033  */
00034 

Tekkotsu v1.4
Generated Sat Jul 19 00:06:31 2003 by Doxygen 1.3.2