Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQOdsGenerator.h 00003 ------------------- 00004 begin : 13/12/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQODSGENERATOR_H_ 00020 #define AQODSGENERATOR_H_ 00021 00022 #include <sstream> 00023 #include <qstring.h> 00024 00025 class AQOdsGenerator 00026 { 00027 public: 00028 AQOdsGenerator() {} 00029 00030 std::stringstream &strStream() { 00031 return strStream_; 00032 } 00033 00034 void clear() { 00035 strStream_.str(""); 00036 } 00037 00038 QString str() const { 00039 return strStream_.str(); 00040 } 00041 00042 bool generateOds(const QString &fileNameOut) const; 00043 00044 private: 00045 std::stringstream strStream_; 00046 }; 00047 00048 #endif /* AQODSGENERATOR_H_ */