void
CBCI2000Controller::execute( ArgList& ioArgs )
{
  std::string command = ioArgs.GetString( 1 );
  int exitCode = 0,
      result = mBCI2000.Execute( command, &exitCode );
  if( ioArgs.size() > 2 )
    ioArgs.SetInt( 1, exitCode );
  ioArgs.SetString( 2, com::DualString( mBCI2000.Result() ).ToWin() );
  ioArgs.SetInt( 0, result );
}
void
CBCI2000Controller::get_state_variable( ArgList& ioArgs )
{
  double result = 0;
  CALL( GetStateVariable( ioArgs.GetString( 1 ), result ) );
  ioArgs.SetInt( 0, static_cast<unsigned int>( result ) );
}