<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm trying to modify SerialCommunication::Write
& Read to return values as David suggested.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Write & Read methods return values such as
SUCCESS, FAILURE, TIMEOUT.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Because there are 3 result values, it can't be
handled with PushInputBoolean().</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So, I'm considering to add the following
method. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It maps an integer value to an Input.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How do you think about this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR>template<class TClass><BR>void<BR>StateMachine< TClass
><BR>::PushInputMap( int condition, const map<int, const InputType>
&conditionInputMap,<BR>
const InputType & inputDefault )<BR>{<BR> const InputType *input =
& inputDefault;</DIV>
<DIV> </DIV>
<DIV> if ( conditionInputMap.find(condition) != conditionInputMap.end()
)<BR> {<BR> input = &
conditionInputMap[condition];<BR> }</DIV>
<DIV> </DIV>
<DIV> m_QueuedInputs.push( input->GetIdentifier() );<BR>}</DIV>
<DIV> </DIV>
<DIV>Hee-Su</DIV>
<DIV></FONT> </DIV></BODY></HTML>