00001 /* 00002 * String Input Buffer 00003 * Universal Accelerator Parser 00004 * Copyright (C) 2005 Andy Wolski, Daniel Bates 00005 * 00006 * This library is free software; you can redistribute it and/or modify it 00007 * under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation; either version 2.1 of the License, or (at 00009 * your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, but WITHOUT 00012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00013 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 00014 * for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public License 00017 * along with this library; if not, write to the Free Software Foundation, Inc., 00018 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 * Direct questions, comments, etc to: 00021 * Andy Wolski (awolski@lbl.gov), Daniel Bates (dbates@lbl.gov) 00022 */ 00023 00024 #include "StringInputBuffer.hpp" 00025 00026 StringInputBuffer::StringInputBuffer(std::string& _istr) 00027 : istr(_istr), nchar(0) 00028 { 00029 00030 } 00031 00032 int StringInputBuffer::getChar() 00033 { 00034 return int(istr[nchar++]); 00035 }
1.5.7