-\r
-#ifndef __DEVCPP_H__\r
-#define __DEVCPP_H__\r
-\r
-#include <fstream>\r
-#include <vector>\r
-#include <string>\r
-\r
-#include "../backend.h"\r
-\r
-class FileUnit\r
-{\r
- public:\r
- std::string filename;\r
- std::string folder;\r
-};\r
-\r
-class DevCppBackend : public Backend\r
-{\r
- public:\r
-\r
- DevCppBackend(Project &project, bool verbose);\r
- virtual ~DevCppBackend() {}\r
-\r
- virtual void Process();\r
-\r
- private:\r
-\r
- void ProcessModules();\r
- void ProcessFile(std::string &filename);\r
- \r
- bool CheckFolderAdded(std::string &folder);\r
- void AddFolders(std::string &folder);\r
-\r
- void OutputFolders();\r
- void OutputFileUnits();\r
- \r
- std::vector<FileUnit> m_fileUnits;\r
- std::vector<std::string> m_folders;\r
-\r
- int m_unitCount;\r
-\r
- std::ofstream m_devFile;\r
-};\r
-\r
-#endif // __DEVCPP_H__\r
-\r
+/*
+ * Copyright (C) 2005 Trevor McCort
+ * Copyright (C) 2005 Casper S. Hornstrup
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+#ifndef __DEVCPP_H__
+#define __DEVCPP_H__
+
+#include <fstream>
+#include <vector>
+#include <string>
+
+#include "../backend.h"
+
+class FileUnit
+{
+ public:
+ std::string filename;
+ std::string folder;
+};
+
+class DevCppBackend : public Backend
+{
+ public:
+
+ DevCppBackend(Project &project,
+ Configuration& configuration);
+ virtual ~DevCppBackend() {}
+
+ virtual void Process();
+
+ private:
+
+ void ProcessModules();
+ void ProcessFile(std::string &filename);
+
+ bool CheckFolderAdded(std::string &folder);
+ void AddFolders(std::string &folder);
+
+ void OutputFolders();
+ void OutputFileUnits();
+
+ std::vector<FileUnit> m_fileUnits;
+ std::vector<std::string> m_folders;
+
+ int m_unitCount;
+
+ std::ofstream m_devFile;
+};
+
+#endif // __DEVCPP_H__
+