Warning, /education/marble/src/bindings/python/sip/GeoWriter.sip is written in an unsupported language. File is not indexed.
0001 // Copyright 2011 Simon Edwards <simon@simonzone.com> 0002 0003 // Generated by twine2 0004 0005 // This program is free software; you can redistribute it and/or modify 0006 // it under the terms of the GNU Library General Public License as 0007 // published by the Free Software Foundation; either version 2, or 0008 // (at your option) any later version. 0009 0010 // This program is distributed in the hope that it will be useful, 0011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 // GNU General Public License for more details 0014 0015 // You should have received a copy of the GNU Library General Public 0016 // License along with this program; if not, write to the 0017 // Free Software Foundation, Inc., 0018 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0019 0020 namespace Marble 0021 { 0022 class GeoWriter : QXmlStreamWriter 0023 { 0024 %TypeHeaderCode 0025 #include <GeoWriter.h> 0026 %End 0027 0028 public: 0029 GeoWriter (); 0030 bool write (QIODevice* device, const Marble::GeoNode* feature); 0031 void setDocumentType (const QString& documentType); 0032 void writeElement (const QString& namespaceUri, const QString& key, const QString& value); 0033 void writeElement (const QString& key, const QString& value); 0034 void writeOptionalElement (const QString& key, const QString& value, const QString& defaultValue = QString()); 0035 %ConvertToSubClassCode 0036 // CTSCC for subclasses of 'QXmlStreamWriter' 0037 sipType = NULL; 0038 0039 if (dynamic_cast<Marble::GeoWriter*>(sipCpp)) 0040 sipType = sipType_Marble_GeoWriter; 0041 %End 0042 }; 0043 }; 0044 %ModuleHeaderCode 0045 //ctscc 0046 #include <GeoWriter.h> 0047 #include <qxmlstream.h> 0048 %End