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

superkaramba

  • superkaramba
  • src
lineparser.h
1/*
2 * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
3 * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se>
4 * Copyright (c) 2005 Ryan Nickell <p0z3r@earthlink.net>
5 * Copyright (c) 2005 Petri Damsten <damu@iki.fi>
6 *
7 * This file is part of SuperKaramba.
8 *
9 * SuperKaramba is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * SuperKaramba is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with SuperKaramba; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 ****************************************************************************/
23#ifndef LINEPARSER_H
24#define LINEPARSER_H
25
30#include <tqstring.h>
31#include <tqcolor.h>
32
33class LineParser
34{
35 public:
36 LineParser(const TQString& line = TQString());
37 ~LineParser();
38
39 void set(const TQString& line);
40
41 int getInt(TQString w, int def = 0) const;
42 TQColor getColor(TQString w, TQColor def = TQColor()) const;
43 TQString getString(TQString w, TQString def = TQString()) const;
44 bool getBoolean(TQString w, bool def = false) const;
45
46 const TQString& meter() const { return m_meter; };
47
48 private:
49 TQString m_line;
50 TQString m_meter;
51};
52
53#endif
LineParser
Definition: lineparser.h:34

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.9.4
This website is maintained by Timothy Pearson.