|
|
Choosing A Webhost: |
CVS update of carob (include/CarobException.hpp src/CarobException.cpp): msg#00207db.carob.cvs
Date: Monday, January 30, 2006 @ 12:09:30 Author: marc Path: /cvsroot/carob/carob Modified: include/CarobException.hpp (1.34 -> 1.35) src/CarobException.cpp (1.18 -> 1.19) Moved StackTraceElement::toWString() implementation from .hpp to .cpp file so we don't #include <sstream> anymore in every file of the project. ----------------------------+ include/CarobException.hpp | 10 ++-------- src/CarobException.cpp | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) Index: carob/include/CarobException.hpp diff -u carob/include/CarobException.hpp:1.34 carob/include/CarobException.hpp:1.35 --- carob/include/CarobException.hpp:1.34 Wed Jan 25 18:27:26 2006 +++ carob/include/CarobException.hpp Mon Jan 30 12:09:30 2006 @@ -24,7 +24,6 @@ #include <string> #include <vector> -#include <sstream> namespace CarobNS { @@ -329,13 +328,8 @@ * Provides a string representation of the element. * @return all members formated in a single string */ - std::wstring toWString() const - { - std::wostringstream oss; - oss << L"at " << declaringClass << L"." << methodName - << L"(" << fileName << L":" << lineNumber << L")"; - return oss.str(); - } + std::wstring toWString() const; + private: // we would like to have const members (and initializer lists) // but we would then rely on declaration order; plus there is Index: carob/src/CarobException.cpp diff -u carob/src/CarobException.cpp:1.18 carob/src/CarobException.cpp:1.19 --- carob/src/CarobException.cpp:1.18 Wed Jan 25 18:27:26 2006 +++ carob/src/CarobException.cpp Mon Jan 30 12:09:30 2006 @@ -24,6 +24,8 @@ #include "Common.hpp" #include "DriverSocket.hpp" +#include <sstream> + #ifdef __GLIBC__ // from features.h #define GLIB_BACKTRACE #include <execinfo.h> @@ -121,3 +123,21 @@ ds>>fileName; ds>>lineNumber; } + +std::wstring +StackTraceElement::toWString() const +{ + std::wostringstream oss; + oss << L"at " << declaringClass << L"." << methodName + << L"(" << fileName << L":" << lineNumber << L")"; + return oss.str(); +} + + +/* + * Local Variables: + * c-file-style: "bsd" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of libmysequoia (Makefile.am libmysequoia.spec), csaba-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of libmysequoia/include (CarobStmt.hpp), zsolt-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob (include/CarobException.hpp src/CarobException.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/src (DriverSocket.cpp JavaSocket.cpp), zsolt-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|