Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS update of carob (include/CarobException.hpp src/CarobException.cpp): msg#00207

db.carob.cvs

Subject: CVS update of carob (include/CarobException.hpp src/CarobException.cpp)

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>
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo