Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

rtkinputxml.h

00001 /*<<<<<COPYRIGHT*/
00002 /*
00003  * RTK The report toolkit
00004  * Copyright (C) 2003 Francisco Santiago Capel Torres
00005 
00006  * rtkinputxml.h RTK standard xml input object
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  */
00019 /*>>>>>COPYRIGHT*/
00020 #ifndef RTKINPUTXML_H
00021 #define RTKINPUTXML_H
00022 
00023 #ifndef RTK_H
00024 #include "rtk.h"
00025 #endif
00026 #include <qxml.h>
00027 
00028 
00029 namespace RTK
00030 {
00031 
00032 class InputXml : public Input
00033 {
00034 /*<<<<<INPUTXML_CONSTRUCTOR*/
00035 public:
00036         InputXml(String name = String(), String driver = String())
00037                         :Input(name, driver)
00038 /*>>>>>INPUTXML_CONSTRUCTOR*/
00039         {};
00040 
00041         ~InputXml();
00042 
00043         virtual bool init();
00044         virtual bool next();
00045         virtual Variant getValue(uint i) const;
00046 
00047 /*<<<<<INPUTXML_GETSET*/
00048 public:
00049 /*>>>>>INPUTXML_GETSET*/
00050 private:
00051         int fieldPos(const String &name) const;
00052 
00053         QValueList<String>mFieldNames;
00054         QValueList<QVariant::Type>mFieldTypes;
00055 
00056 };
00057 
00058 }; // namespace
00059 
00060 #endif
00061 
00062 

Generated on Tue Feb 22 14:44:37 2005 for RTK. Report ToolKit by  doxygen 1.3.9.1