parts/astyle/astyle_adaptor.h
Go to the documentation of this file.00001 #ifndef __ASTYLE_ADAPTOR_H__ 00002 #define __ASTYLE_ADAPTOR_H__ 00003 00004 00005 #include <qstring.h> 00006 #include <qtextstream.h> 00007 00008 00009 #include "astyle.h" 00010 00011 00012 class ASStringIterator : public astyle::ASSourceIterator 00013 { 00014 public: 00015 00016 ASStringIterator(const QString &string); 00017 virtual ~ASStringIterator(); 00018 00019 virtual bool hasMoreLines() const; 00020 virtual string nextLine(); 00021 00022 00023 private: 00024 00025 QString _content; 00026 QTextStream *_is; 00027 00028 }; 00029 00030 00031 class KDevFormatter : public astyle::ASFormatter 00032 { 00033 public: 00034 00035 KDevFormatter(); 00036 00037 }; 00038 00039 00040 #endif