umbrello API Documentation

cppmakecodedocument.cpp

00001 
00002 /***************************************************************************
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  *   copyright (C) 2004-2006                                               *
00010  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00011  ***************************************************************************/
00012 
00013 /*  This code generated by:
00014  *      Author : thomas
00015  *      Date   : Tue Jun 24 2003
00016  */
00017 
00018 #include "cppcodegenerator.h"
00019 
00020 #include <qregexp.h>
00021 
00022 const char * CPPMakefileCodeDocument::DOCUMENT_ID_VALUE = "Makefile_DOC";
00023 
00024 // Constructors/Destructors
00025 //
00026 
00027 CPPMakefileCodeDocument::CPPMakefileCodeDocument ( )
00028 {
00029     setFileName("Makefile"); // default name
00030     setFileExtension("");
00031     setID(DOCUMENT_ID_VALUE); // default id tag for this type of document
00032 }
00033 
00034 CPPMakefileCodeDocument::~CPPMakefileCodeDocument ( ) { }
00035 
00036 //
00037 // Methods
00038 //
00039 
00040 // Other methods
00041 //
00042 
00043 // we add in our code blocks that describe how to generate
00044 // the project here...
00045 void CPPMakefileCodeDocument::updateContent( ) {
00046     // FIX : fill in content
00047 }
00048 
00052 QString CPPMakefileCodeDocument::toString ( ) {
00053     return "# cpp make build document";
00054 }
00055 
00056 // We overwritten by CPP language implementation to get lowercase path
00057 QString CPPMakefileCodeDocument::getPath ( )
00058 {
00059 
00060     QString path = getPackage();
00061 
00062     // Replace all white spaces with blanks
00063     path.simplifyWhiteSpace();
00064 
00065     // Replace all blanks with underscore
00066     path.replace(QRegExp(" "), "_");
00067 
00068     path.replace(QRegExp("\\."),"/");
00069     path.replace(QRegExp("::"),"/");
00070 
00071     path.lower();
00072 
00073     return path;
00074 
00075 }
00076 
00077 
00078 #include "cppmakecodedocument.moc"
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:56 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003