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

rtkformula.h

00001 /*<<<<<COPYRIGHT*/
00002 /*
00003  * RTK The report toolkit
00004  * Copyright (C) 2003 Francisco Santiago Capel Torres
00005 
00006  * rtkformula.h formulae and/or scripts
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 
00021 #ifndef RTKFORMULA_H
00022 #define RTKFORMULA_H
00023 
00024 #include "rtknamespace.h"
00025 #include "rtkvariant.h"
00026 
00027 namespace RTK {
00028 
00029 class Formula {
00030 /*<<<<<FORMULA_CONSTRUCTOR*/
00031 public:
00032         Formula(const String& name = String::null, const String& code = String::null)
00033         :mName(name), mCode(code)
00034 /*>>>>>FORMULA_CONSTRUCTOR*/
00035         {};
00036   
00037         ~Formula();
00038 //   Variant ValueToVariant(KJS::ExecState* exec, const KJS::Value &val);
00039 
00040 /*<<<<<FORMULA_GETSET*/
00041 public:
00042         const String& getName() const { return mName; };
00043         void setName(const String& name) { mName = name; };
00044         const String& getCode() const { return mCode; };
00045         void setCode(const String& code) { mCode = code; };
00046 protected:
00047         String mName;
00048         String mCode;
00049 /*>>>>>FORMULA_GETSET*/
00050 #ifndef NDEBUG
00051     void debug_print();
00052 #endif    
00053 };
00054 
00055 }; // namespace
00056 
00057 #endif // RTKFORMULA_H

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