Index: /trunk/libffado/support/templates/lgpl-class.cpp =================================================================== --- /trunk/libffado/support/templates/lgpl-class.cpp (revision 446) +++ /trunk/libffado/support/templates/lgpl-class.cpp (revision 446) @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2007 by Daniel Wagner + * Copyright (C) 2007 by Pieter Palmers + * Copyright (C) 2007 by Jonathan Woithe + * + * This file is part of FFADO + * FFADO = Free Firewire (pro-)audio drivers for linux + * + * FFADO is based upon FreeBoB + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation; + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + +#include "hhh" + +namespace YYY { + +IMPL_DEBUG_MODULE( XXX, XXX, DEBUG_LEVEL_NORMAL ); + +XXX::XXX() { + +} + +XXX::~XXX() { + +} + +} // end of namespace YYY Index: /trunk/libffado/support/templates/lgpl-class.h =================================================================== --- /trunk/libffado/support/templates/lgpl-class.h (revision 446) +++ /trunk/libffado/support/templates/lgpl-class.h (revision 446) @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2007 by Daniel Wagner + * Copyright (C) 2007 by Pieter Palmers + * Copyright (C) 2007 by Jonathan Woithe + * + * This file is part of FFADO + * FFADO = Free Firewire (pro-)audio drivers for linux + * + * FFADO is based upon FreeBoB + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation; + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + +#ifndef __FFAD0_0__ +#define __FFADO_0__ + +#include "src/debugmodule/debugmodule.h" + +namespace YYY { + +class XXX { + +public: + + XXX(); + virtual ~XXX(); + +protected: + DECLARE_DEBUG_MODULE; + +}; + +} // end of namespace YYY + +#endif /* __FFADO_0__ */ + + Index: /trunk/libffado/support/templates/addfilefromtemplate =================================================================== --- /trunk/libffado/support/templates/addfilefromtemplate (revision 446) +++ /trunk/libffado/support/templates/addfilefromtemplate (revision 446) @@ -0,0 +1,26 @@ +#!/bin/sh +# +# (C) 2007, Pieter Palmers +# Licensed under GPL +# +# addfilefromtemplate TemplateBase ClassName NameSpace +# + +CLASS_NAME="$2" +NAMESPACE="$3" +TEMPLATE="$1" + +CLASS_UPPER=`echo "$CLASS_NAME" | tr '[:lower:]' '[:upper:]'` + +sed -e "s/XXX/$CLASS_NAME/g" "$TEMPLATE.cpp" |\ + sed -e "s/YYY/$NAMESPACE/g" |\ + sed -e "s/hhh/$CLASS_NAME\.h/g" \ + > "$CLASS_NAME.cpp" + +sed -e "s/XXX/$CLASS_NAME/g" "$TEMPLATE.h" |\ + sed -e "s/YYY/$NAMESPACE/g" |\ + sed -e "s/hhh/$CLASS_NAME\.h/g" |\ + sed -e "s/FREEBOB_0/FREEBOB_$CLASS_UPPER/g" \ + > "$CLASS_NAME.h" + +svn add "$CLASS_NAME.cpp" "$CLASS_NAME.h"