X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cc;h=ade974acfdf5c61e9b742925af4418aeb95f93b2;hb=9a988902090d28007578e93bffd809f6bd913155;hp=c9a43f111f6ca8748406f9b7dfdc66af580286a9;hpb=c28e0df3accaafcc9a934275f80c80153f5a0e54;p=senf.git diff --git a/Utils/Exception.cc b/Utils/Exception.cc index c9a43f1..ade974a 100644 --- a/Utils/Exception.cc +++ b/Utils/Exception.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,7 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// Definition of non-inline non-template functions +/** \file + \brief Exception non-inline non-template implementation */ #include "Exception.hh" //#include "Exception.ih" @@ -32,8 +33,11 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ void satcom::lib::SystemException::init() +prefix_ void senf::SystemException::init() { + // We normallyl don't want to consume memory in an exception, + // however all other solutions to format the message are terribly + // ugly (since thay must use a static and shared buffer ...) std::stringstream s; if (where) s << where << ": "; @@ -41,7 +45,7 @@ prefix_ void satcom::lib::SystemException::init() buffer_ = s.str(); } -prefix_ char const * satcom::lib::SystemException::what() +prefix_ char const * senf::SystemException::what() const throw() { return buffer_.c_str(); @@ -53,5 +57,8 @@ prefix_ char const * satcom::lib::SystemException::what() // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: