kig
vector_type.h
Go to the documentation of this file.00001 // Copyright (C) 2004 Dominique Devriese <devriese@kde.org> 00002 00003 // This program is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU General Public License 00005 // as published by the Free Software Foundation; either version 2 00006 // of the License, or (at your option) any later version. 00007 00008 // This program is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 // GNU General Public License for more details. 00012 00013 // You should have received a copy of the GNU General Public License 00014 // along with this program; if not, write to the Free Software 00015 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00016 // 02110-1301, USA. 00017 00018 #ifndef KIG_OBJECTS_VECTOR_TYPE_H 00019 #define KIG_OBJECTS_VECTOR_TYPE_H 00020 00021 #include "base_type.h" 00022 00023 class VectorType 00024 : public ObjectABType 00025 { 00026 VectorType(); 00027 ~VectorType(); 00028 public: 00029 static const VectorType* instance(); 00030 ObjectImp* calc( const Coordinate& a, const Coordinate& b ) const; 00031 const ObjectImpType* resultId() const; 00032 }; 00033 00034 class VectorSumType 00035 : public ArgsParserObjectType 00036 { 00037 VectorSumType(); 00038 ~VectorSumType(); 00039 public: 00040 static const VectorSumType* instance(); 00041 ObjectImp* calc( const Args& args, const KigDocument& ) const; 00042 const ObjectImpType* resultId() const; 00043 }; 00044 00045 #endif
KDE 4.0 API Reference