• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

lineparser.h

00001 /*
00002  * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
00003  * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se>
00004  * Copyright (c) 2005 Ryan Nickell <p0z3r@earthlink.net>
00005  * Copyright (c) 2005 Petri Damsten <damu@iki.fi>
00006  *
00007  * This file is part of SuperKaramba.
00008  *
00009  *  SuperKaramba is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  SuperKaramba is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with SuperKaramba; if not, write to the Free Software
00021  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022  ****************************************************************************/
00023 #ifndef LINEPARSER_H
00024 #define LINEPARSER_H
00025 
00030 #include <tqstring.h>
00031 #include <tqcolor.h>
00032 
00033 class LineParser
00034 {
00035   public:
00036     LineParser(const TQString& line = TQString());
00037     ~LineParser();
00038 
00039     void set(const TQString& line);
00040 
00041     int getInt(TQString w, int def = 0) const;
00042     TQColor getColor(TQString w, TQColor def = TQColor()) const;
00043     TQString getString(TQString w, TQString def = TQString()) const;
00044     bool getBoolean(TQString w, bool def = false) const;
00045 
00046     const TQString& meter() const { return m_meter; };
00047 
00048   private:
00049     TQString m_line;
00050     TQString m_meter;
00051 };
00052 
00053 #endif

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.6.3
This website is maintained by Timothy Pearson.