Date: Wednesday, November 30, 2005 @ 15:05:33
  Author: gilles
    Path: /cvsroot/carob/carob/include

Modified: CarobException.hpp (1.15 -> 1.16)

Added explicit public and private tags on members and functions
Javadoc added


--------------------+
 CarobException.hpp |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)


Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.15 
carob/include/CarobException.hpp:1.16
--- carob/include/CarobException.hpp:1.15       Mon Nov 28 19:46:24 2005
+++ carob/include/CarobException.hpp    Wed Nov 30 15:05:33 2005
@@ -294,14 +294,25 @@
  */
 struct StackTraceElement
 {
+public:
   /**
-   * Create a stacktrace element by deserialization from the given
-   * socket
+   * Create a stacktrace element by deserialization from the given socket
    * @param ds  the socket from which to deserialize element
    * @throws SocketIOException in case of problem on the socket
    */
   StackTraceElement(const DriverSocket& ds) throw (SocketIOException,
       UnexpectedException);
+  /**
+   * Provides a string representation of the element.
+   * @return all members formated in a single string
+   */
+  wstring toWString() const
+  { 
+    wostringstream oss;
+    oss << L"at " << declaringClass << L"." << methodName << L"(" << fileName 
<< L":" << lineNumber << L")";
+    return oss.str();
+  }
+private:
   // we would like to have const members (and initializer lists)
   // but we would then rely on declaration order; plus there is
   // a syntax issue with operator>>
@@ -309,14 +320,6 @@
   wstring methodName;
   wstring fileName;
   int32_t lineNumber;
-
-  wstring toWString() const
-  { 
-    wostringstream oss;
-    oss << L"at " << declaringClass << L"." << methodName << L"(" << fileName 
<< L":" << lineNumber << L")";
-    return oss.str();
-  } 
-
 };
 #endif //_CAROBEXCEPTION_H_
 

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to