From 85982217db9d895d39ac836fcd129bd0e55c0d40 Mon Sep 17 00:00:00 2001 From: jinx Date: Sun, 17 Sep 2006 01:19:52 +0000 Subject: [PATCH] auditing performed, made some changes like removed std, or corrected the name of the file, and in come cases added the licence text where it was missing --gv git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1220 3ecf2c5c-341e-0410-92b4-d18e462d057c --- plugins/pyloader/src/sgpem.i | 26 ++++++++++++++++--- plugins/xmlsave/src/xml_serializer_factory.hh | 6 ++--- plugins/xmlsave/src/xml_visitor.cc | 13 ++++------ plugins/xmlsave/src/xml_visitor.hh | 6 ++--- 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/plugins/pyloader/src/sgpem.i b/plugins/pyloader/src/sgpem.i index a78f7fd..8a986c1 100644 --- a/plugins/pyloader/src/sgpem.i +++ b/plugins/pyloader/src/sgpem.i @@ -1,3 +1,24 @@ +// plugins/pyloader/src/sgpem.i - Copyright 2005, 2006, University +// of Padova, dept. of Pure and Applied +// Mathematics +// +// This file is part of SGPEMv2. +// +// This 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. +// +// SGPEMv2 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 SGPEMv2; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + %module sgpem %{ #include @@ -29,9 +50,6 @@ using namespace sgpem; // ------------- EXCEPTIONS ------------------------------- -/* FIXME : look up into Swig manual the management of - * STL exceptions and write wrappers for them. - */ %include "exception.i" %exception { @@ -48,7 +66,7 @@ using namespace sgpem; // Instantiate a Thread* vector for usage with sgpem::Process // std::out_of_range should be automatically defined, -// see Swig manual at the STL Vector §. +// see Swig manual at the STL Vector . %include "std_vector.i" namespace std { diff --git a/plugins/xmlsave/src/xml_serializer_factory.hh b/plugins/xmlsave/src/xml_serializer_factory.hh index 3d10304..6d57d23 100644 --- a/plugins/xmlsave/src/xml_serializer_factory.hh +++ b/plugins/xmlsave/src/xml_serializer_factory.hh @@ -1,4 +1,4 @@ -// src/xml_serializer_factory.hh - Copyright 2005, 2006, University +// plugins/xmlsave/src/xml_serializer_factory.hh - Copyright 2005, 2006, University // of Padova, dept. of Pure and Applied // Mathematics // @@ -122,6 +122,6 @@ namespace sgpem // to reslove sub requests TempMap _temp_map; }; -} +} //~ namespace -#endif +#endif //~ XML_SERIALIZER_FACTORY_HH diff --git a/plugins/xmlsave/src/xml_visitor.cc b/plugins/xmlsave/src/xml_visitor.cc index 6d4e837..b24661e 100644 --- a/plugins/xmlsave/src/xml_visitor.cc +++ b/plugins/xmlsave/src/xml_visitor.cc @@ -1,4 +1,4 @@ -// src/backend/serialize_visitor.cc - Copyright 2005, 2006, University +// plugins/xmlsave/src/xml_visitor.cc - Copyright 2005, 2006, University // of Padova, dept. of Pure and Applied // Mathematics // @@ -37,10 +37,12 @@ using namespace sgpem; XMLVisitor::XMLVisitor(xmlNodePtr current) : _current(current) -{} +{ +} XMLVisitor::~XMLVisitor() -{} +{ +} void XMLVisitor::from_resource(const Resource& obj) throw(SerializerError) { @@ -91,11 +93,6 @@ void XMLVisitor::from_resource(const Resource& obj, const Glib::ustring& key) th } - - - - - void XMLVisitor::from_history(xmlNodePtr parent, const History& hist) throw(SerializerError) { if (parent != NULL) diff --git a/plugins/xmlsave/src/xml_visitor.hh b/plugins/xmlsave/src/xml_visitor.hh index dafa214..84b40f5 100644 --- a/plugins/xmlsave/src/xml_visitor.hh +++ b/plugins/xmlsave/src/xml_visitor.hh @@ -1,4 +1,4 @@ -// src/backend/serialize_visitor.hh - Copyright 2005, 2006, University +// plugin/xmlsave/src/xml_visitor.hh - Copyright 2005, 2006, University // of Padova, dept. of Pure and Applied // Mathematics // @@ -127,7 +127,7 @@ namespace sgpem xmlNodePtr _current; }; -} +} // ~namespace -#endif +#endif //~ XML_VISITOR_HH