activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1407255 [4/4] - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main: ./ decaf/io/ decaf/lang/ decaf/lang/exceptions/ decaf/net/ decaf/nio/
Date Thu, 08 Nov 2012 20:20:36 GMT
Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "SocketImplFactory.h"
+
+using namespace decaf;
+using namespace decaf::net;
+
+////////////////////////////////////////////////////////////////////////////////
+SocketImplFactory::~SocketImplFactory() {
+
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketImplFactory.h Thu Nov  8 20:20:28 2012
@@ -38,7 +38,7 @@ namespace net {
     class DECAF_API SocketImplFactory {
     public:
 
-        virtual ~SocketImplFactory() {}
+        virtual ~SocketImplFactory();
 
         /**
          * Creates a new SokcetImpl instance and returns it, the caller then owns the

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "SocketTimeoutException.h"
+
+using namespace decaf;
+using namespace decaf::net;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::SocketTimeoutException() : io::InterruptedIOException() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::~SocketTimeoutException() throw() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::SocketTimeoutException(const Exception& ex) : io::InterruptedIOException() {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::SocketTimeoutException(const SocketTimeoutException& ex) : io::InterruptedIOException() {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::SocketTimeoutException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : io::InterruptedIOException(cause) {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::SocketTimeoutException(const std::exception* cause) : io::InterruptedIOException(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+SocketTimeoutException::SocketTimeoutException(const char* file, const int lineNumber, const char* msg, ...) : io::InterruptedIOException() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/SocketTimeoutException.h Thu Nov  8 20:20:28 2012
@@ -21,8 +21,8 @@
 #include <decaf/util/Config.h>
 #include <decaf/io/InterruptedIOException.h>
 
-namespace decaf{
-namespace net{
+namespace decaf {
+namespace net {
 
     class DECAF_API SocketTimeoutException : public io::InterruptedIOException {
     public:
@@ -30,78 +30,54 @@ namespace net{
         /**
          * Default Constructor
          */
-        SocketTimeoutException() {}
+        SocketTimeoutException();
 
         /**
          * Conversion Constructor from some other Exception
+         *
          * @param ex An exception that should become this type of Exception
          */
-        SocketTimeoutException( const Exception& ex ) : io::InterruptedIOException()
-        {
-            *(Exception*)this = ex;
-        }
+        SocketTimeoutException(const Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex An exception that should become this type of Exception
          */
-        SocketTimeoutException( const SocketTimeoutException& ex )
-        : io::InterruptedIOException()
-        {
-            *(Exception*)this = ex;
-        }
+        SocketTimeoutException(const SocketTimeoutException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        SocketTimeoutException( const char* file, const int lineNumber,
-                                const std::exception* cause,
-                                const char* msg, ... )
-        : io::InterruptedIOException( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        SocketTimeoutException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
+         *
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        SocketTimeoutException( const std::exception* cause )
-            : io::InterruptedIOException( cause ) {}
+        SocketTimeoutException(const std::exception* cause);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        SocketTimeoutException( const char* file, const int lineNumber,
-                                const char* msg, ... )
-        : io::InterruptedIOException()
-        {
-            va_list vargs ;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        SocketTimeoutException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -111,10 +87,10 @@ namespace net{
          * @return a new Exception instance that is a copy of this Exception object.
          */
         virtual SocketTimeoutException* clone() const {
-            return new SocketTimeoutException( *this );
+            return new SocketTimeoutException(*this);
         }
 
-        virtual ~SocketTimeoutException() throw() {}
+        virtual ~SocketTimeoutException() throw();
 
     };
 

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "URISyntaxException.h"
+
+using namespace decaf;
+using namespace decaf::net;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException() : decaf::lang::Exception(), reason(), input(), index(-1) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::~URISyntaxException() throw () {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const Exception& ex) : Exception(), reason(), input(), index(-1) {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const URISyntaxException& ex) :
+    Exception(), reason(ex.getReason()), input(ex.getInput()), index(ex.getIndex()) {
+
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) :
+    lang::Exception(cause), reason(), input(), index(-1) {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const std::exception* cause) :
+    lang::Exception(cause), reason(), input(), index(-1) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const char* file, const int lineNumber, const char* msg DECAF_UNUSED) :
+    Exception(), reason("<Unknown Reason>"), input("<No Address Given>"), index(-1) {
+
+    const char * message = "Input: %s, Reason it failed: %s";
+    this->setMessage(message, input.c_str(), reason.c_str());
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const char* file, const int lineNumber, const std::string& input, const std::string& reason) :
+    Exception(), reason(reason), input(input), index(-1) {
+
+    const char * message = "Input: %s, Reason it failed: %s";
+    this->setMessage(message, input.c_str(), reason.c_str());
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+URISyntaxException::URISyntaxException(const char* file, const int lineNumber, const std::string& input, const std::string& reason, int index) :
+    Exception(), reason(reason), input(input), index(index) {
+
+    const char * message = "Input: %s, Index %d resulted in this error: %s";
+    this->setMessage(message, input.c_str(), index, reason.c_str());
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/URISyntaxException.h Thu Nov  8 20:20:28 2012
@@ -36,77 +36,54 @@ namespace net{
         /**
          * Default Constructor
          */
-        URISyntaxException() : decaf::lang::Exception(), reason(), input(), index( -1 ) {
-        }
+        URISyntaxException();
 
         /**
          * Conversion Constructor from some other Exception
+         *
          * @param ex An exception that should become this type of Exception
          */
-        URISyntaxException( const Exception& ex ) : Exception(), reason(), input(), index( -1 ) {
-            *(Exception*)this = ex;
-        }
+        URISyntaxException(const Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex An exception that should become this type of Exception
          */
-        URISyntaxException( const URISyntaxException& ex )
-            : Exception(), reason( ex.getReason() ), input( ex.getInput() ), index( ex.getIndex() ) {
-
-            *(Exception*)this = ex;
-        }
+        URISyntaxException(const URISyntaxException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        URISyntaxException( const char* file, const int lineNumber,
-                            const std::exception* cause,
-                            const char* msg, ... )
-        : lang::Exception( cause ), reason(), input(), index( -1 )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        URISyntaxException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
+         *
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        URISyntaxException( const std::exception* cause )
-            : lang::Exception( cause ), reason(), input(), index( -1 ) {}
+        URISyntaxException(const std::exception* cause);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        URISyntaxException( const char* file, const int lineNumber,
-                            const char* msg DECAF_UNUSED )
-        : Exception(), reason( "<Unknown Reason>" ), input( "<No Address Given>" ), index( -1 )
-        {
-            const char * message = "Input: %s, Reason it failed: %s";
-            this->setMessage( message, input.c_str(), reason.c_str() );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        URISyntaxException(const char* file, const int lineNumber, const char* msg);
 
         /**
          * Constructor - Initializes the file name and line number where
@@ -118,17 +95,7 @@ namespace net{
          * @param input The URL that caused the exception.
          * @param reason The reason for the failure.
          */
-        URISyntaxException( const char* file, const int lineNumber,
-                            const std::string& input,
-                            const std::string& reason )
-        : Exception(), reason( reason ), input( input ), index( -1 ) {
-
-            const char * message = "Input: %s, Reason it failed: %s";
-            this->setMessage( message, input.c_str(), reason.c_str() );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        URISyntaxException(const char* file, const int lineNumber, const std::string& input, const std::string& reason);
 
         /**
          * Constructor - Initializes the file name and line number where
@@ -141,18 +108,7 @@ namespace net{
          * @param reason The reason for the failure.
          * @param index The index in the URI string where the error occurred.
          */
-        URISyntaxException( const char* file, const int lineNumber,
-                            const std::string& input,
-                            const std::string& reason,
-                            int index )
-        : Exception(), reason( reason ), input( input ), index( index ) {
-
-            const char * message = "Input: %s, Index %d resulted in this error: %s";
-            this->setMessage( message, input.c_str(), index, reason.c_str() );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        URISyntaxException(const char* file, const int lineNumber, const std::string& input, const std::string& reason, int index);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -162,10 +118,10 @@ namespace net{
          * @return a new Exception instance that is a copy of this Exception object.
          */
         virtual URISyntaxException* clone() const {
-            return new URISyntaxException( *this );
+            return new URISyntaxException(*this);
         }
 
-        virtual ~URISyntaxException() throw() {}
+        virtual ~URISyntaxException() throw();
 
         /**
          * @returns the Input string that cause this exception or ""

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "UnknownHostException.h"
+
+using namespace decaf;
+using namespace decaf::net;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::UnknownHostException() : io::IOException() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::~UnknownHostException() throw() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::UnknownHostException(const Exception& ex) : io::IOException() {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::UnknownHostException(const UnknownHostException& ex) : io::IOException() {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::UnknownHostException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : io::IOException(cause) {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::UnknownHostException(const std::exception* cause) : io::IOException(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownHostException::UnknownHostException(const char* file, const int lineNumber, const char* msg, ...) : io::IOException() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownHostException.h Thu Nov  8 20:20:28 2012
@@ -21,8 +21,8 @@
 #include <decaf/util/Config.h>
 #include <decaf/io/IOException.h>
 
-namespace decaf{
-namespace net{
+namespace decaf {
+namespace net {
 
     class DECAF_API UnknownHostException : public io::IOException {
     public:
@@ -30,78 +30,54 @@ namespace net{
         /**
          * Default Constructor
          */
-        UnknownHostException() {}
+        UnknownHostException();
 
         /**
          * Conversion Constructor from some other Exception
+         *
          * @param ex An exception that should become this type of Exception
          */
-        UnknownHostException( const Exception& ex )
-        : io::IOException()
-        {
-            *(Exception*)this = ex;
-        }
+        UnknownHostException(const Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex An exception that should become this type of Exception
          */
-        UnknownHostException( const UnknownHostException& ex ) : io::IOException()
-        {
-            *(Exception*)this = ex;
-        }
+        UnknownHostException(const UnknownHostException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        UnknownHostException( const char* file, const int lineNumber,
-                              const std::exception* cause,
-                              const char* msg, ... )
-        : io::IOException( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        UnknownHostException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
+         *
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        UnknownHostException( const std::exception* cause )
-            : io::IOException( cause ) {}
+        UnknownHostException(const std::exception* cause);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        UnknownHostException( const char* file, const int lineNumber,
-                              const char* msg, ... )
-        : io::IOException()
-        {
-            va_list vargs ;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        UnknownHostException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -111,10 +87,10 @@ namespace net{
          * @return a new Exception instance that is a copy of this Exception object.
          */
         virtual UnknownHostException* clone() const {
-            return new UnknownHostException( *this );
+            return new UnknownHostException(*this);
         }
 
-        virtual ~UnknownHostException() throw() {}
+        virtual ~UnknownHostException() throw();
 
     };
 

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "UnknownServiceException.h"
+
+using namespace decaf;
+using namespace decaf::net;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::UnknownServiceException() : io::IOException() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::~UnknownServiceException() throw() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::UnknownServiceException(const Exception& ex) : io::IOException() {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::UnknownServiceException(const UnknownServiceException& ex) : io::IOException() {
+    *(Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::UnknownServiceException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : io::IOException(cause) {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::UnknownServiceException(const std::exception* cause) : io::IOException(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+UnknownServiceException::UnknownServiceException(const char* file, const int lineNumber, const char* msg, ...) : io::IOException() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/net/UnknownServiceException.h Thu Nov  8 20:20:28 2012
@@ -21,8 +21,8 @@
 #include <decaf/util/Config.h>
 #include <decaf/io/IOException.h>
 
-namespace decaf{
-namespace net{
+namespace decaf {
+namespace net {
 
     class DECAF_API UnknownServiceException : public io::IOException {
     public:
@@ -30,79 +30,54 @@ namespace net{
         /**
          * Default Constructor
          */
-        UnknownServiceException() {}
+        UnknownServiceException();
 
         /**
          * Conversion Constructor from some other Exception
+         *
          * @param ex An exception that should become this type of Exception
          */
-        UnknownServiceException( const Exception& ex )
-        : io::IOException()
-        {
-            *(Exception*)this = ex;
-        }
+        UnknownServiceException(const Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex An exception that should become this type of Exception
          */
-        UnknownServiceException( const UnknownServiceException& ex )
-        : io::IOException()
-        {
-            *(Exception*)this = ex;
-        }
+        UnknownServiceException(const UnknownServiceException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        UnknownServiceException( const char* file, const int lineNumber,
-                                 const std::exception* cause,
-                                 const char* msg, ... )
-        : io::IOException( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        UnknownServiceException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
+         *
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        UnknownServiceException( const std::exception* cause )
-            : io::IOException( cause ) {}
+        UnknownServiceException(const std::exception* cause);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        UnknownServiceException( const char* file, const int lineNumber,
-                                 const char* msg, ... )
-        : io::IOException()
-        {
-            va_list vargs ;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        UnknownServiceException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -112,10 +87,10 @@ namespace net{
          * @return a new Exception instance that is a copy of this Exception object.
          */
         virtual UnknownServiceException* clone() const {
-            return new UnknownServiceException( *this );
+            return new UnknownServiceException(*this);
         }
 
-        virtual ~UnknownServiceException() throw() {}
+        virtual ~UnknownServiceException() throw();
 
     };
 

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "BufferOverflowException.h"
+
+using namespace decaf;
+using namespace decaf::nio;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::BufferOverflowException() : lang::Exception() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::~BufferOverflowException() throw () {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::BufferOverflowException(const lang::Exception& ex) : lang::Exception() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::BufferOverflowException(const BufferOverflowException& ex) : lang::Exception() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::BufferOverflowException(
+    const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : lang::Exception(cause) {
+
+    va_list vargs;
+    va_start( vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::BufferOverflowException(const std::exception* cause) : lang::Exception(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferOverflowException::BufferOverflowException(
+    const char* file, const int lineNumber, const char* msg, ...) : lang::Exception() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferOverflowException.h Thu Nov  8 20:20:28 2012
@@ -21,8 +21,8 @@
 #include <decaf/util/Config.h>
 #include <decaf/lang/Exception.h>
 
-namespace decaf{
-namespace nio{
+namespace decaf {
+namespace nio {
 
     class DECAF_API BufferOverflowException : public lang::Exception {
     public:
@@ -30,55 +30,42 @@ namespace nio{
         /**
          * Default Constructor
          */
-        BufferOverflowException() {}
+        BufferOverflowException();
 
         /**
          * Copy Constructor
+         *
          * @param ex the exception to copy
          */
-        BufferOverflowException( const lang::Exception& ex )
-        : lang::Exception() {
-            *(lang::Exception*)this = ex;
-        }
+        BufferOverflowException(const lang::Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex the exception to copy, which is an instance of this type
          */
-        BufferOverflowException( const BufferOverflowException& ex )
-        : lang::Exception() {
-            *(lang::Exception*)this = ex;
-        }
+        BufferOverflowException(const BufferOverflowException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        BufferOverflowException( const char* file, const int lineNumber,
-                                 const std::exception* cause,
-                                 const char* msg, ... ) : lang::Exception( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        BufferOverflowException(const char* file, const int lineNumber,
+                                const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        BufferOverflowException( const std::exception* cause )
-            : lang::Exception( cause ) {}
+        BufferOverflowException(const std::exception* cause);
 
         /**
          * Constructor
@@ -87,17 +74,7 @@ namespace nio{
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        BufferOverflowException( const char* file, const int lineNumber,
-                                 const char* msg, ... )
-        : lang::Exception() {
-
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        BufferOverflowException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -105,10 +82,10 @@ namespace nio{
          * All subclasses should override.
          */
         virtual BufferOverflowException* clone() const {
-            return new BufferOverflowException( *this );
+            return new BufferOverflowException(*this);
         }
 
-        virtual ~BufferOverflowException() throw() {}
+        virtual ~BufferOverflowException() throw();
 
     };
 

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "BufferUnderflowException.h"
+
+using namespace decaf;
+using namespace decaf::nio;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::BufferUnderflowException() : lang::Exception() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::~BufferUnderflowException() throw () {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::BufferUnderflowException(const lang::Exception& ex) : lang::Exception() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::BufferUnderflowException(const BufferUnderflowException& ex) : lang::Exception() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::BufferUnderflowException(
+    const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : lang::Exception(cause) {
+
+    va_list vargs;
+    va_start( vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::BufferUnderflowException(const std::exception* cause) : lang::Exception(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+BufferUnderflowException::BufferUnderflowException(
+    const char* file, const int lineNumber, const char* msg, ...) : lang::Exception() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/BufferUnderflowException.h Thu Nov  8 20:20:28 2012
@@ -21,8 +21,8 @@
 #include <decaf/util/Config.h>
 #include <decaf/lang/Exception.h>
 
-namespace decaf{
-namespace nio{
+namespace decaf {
+namespace nio {
 
     class DECAF_API BufferUnderflowException : public lang::Exception {
     public:
@@ -30,73 +30,52 @@ namespace nio{
         /**
          * Default Constructor
          */
-        BufferUnderflowException() {}
+        BufferUnderflowException();
 
         /**
          * Copy Constructor
+         *
          * @param ex the exception to copy
          */
-        BufferUnderflowException( const lang::Exception& ex )
-        : lang::Exception() {
-            *(lang::Exception*)this = ex;
-        }
+        BufferUnderflowException(const lang::Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex the exception to copy, which is an instance of this type
          */
-        BufferUnderflowException( const BufferUnderflowException& ex )
-        : lang::Exception() {
-            *(lang::Exception*)this = ex;
-        }
+        BufferUnderflowException(const BufferUnderflowException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        BufferUnderflowException( const char* file, const int lineNumber,
-                                  const std::exception* cause,
-                                  const char* msg, ... ) : lang::Exception( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        BufferUnderflowException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
+         *
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        BufferUnderflowException( const std::exception* cause )
-            : lang::Exception( cause ) {}
+        BufferUnderflowException(const std::exception* cause);
 
         /**
          * Constructor
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        BufferUnderflowException( const char* file, const int lineNumber,
-                                  const char* msg, ... )
-        : lang::Exception() {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        BufferUnderflowException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -104,10 +83,10 @@ namespace nio{
          * All subclasses should override.
          */
         virtual BufferUnderflowException* clone() const {
-            return new BufferUnderflowException( *this );
+            return new BufferUnderflowException(*this);
         }
 
-        virtual ~BufferUnderflowException() throw() {}
+        virtual ~BufferUnderflowException() throw();
 
     };
 

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "InvalidMarkException.h"
+
+using namespace decaf;
+using namespace decaf::nio;
+using namespace decaf::lang;
+using namespace decaf::lang::exceptions;
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::InvalidMarkException() : lang::exceptions::IllegalStateException() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::~InvalidMarkException() throw () {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::InvalidMarkException(const lang::Exception& ex) : lang::exceptions::IllegalStateException() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::InvalidMarkException(const InvalidMarkException& ex) : lang::exceptions::IllegalStateException() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::InvalidMarkException(
+    const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : lang::exceptions::IllegalStateException(cause) {
+
+    va_list vargs;
+    va_start( vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::InvalidMarkException(const std::exception* cause) : lang::exceptions::IllegalStateException(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidMarkException::InvalidMarkException(
+    const char* file, const int lineNumber, const char* msg, ...) : lang::exceptions::IllegalStateException() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/InvalidMarkException.h Thu Nov  8 20:20:28 2012
@@ -21,8 +21,8 @@
 #include <decaf/util/Config.h>
 #include <decaf/lang/exceptions/IllegalStateException.h>
 
-namespace decaf{
-namespace nio{
+namespace decaf {
+namespace nio {
 
     class DECAF_API InvalidMarkException : public lang::exceptions::IllegalStateException {
     public:
@@ -30,7 +30,7 @@ namespace nio{
         /**
          * Default Constructor
          */
-        InvalidMarkException() {}
+        InvalidMarkException();
 
         /**
          * Conversion Constructor from some other Exception
@@ -38,10 +38,7 @@ namespace nio{
          * @param ex
          *      The Exception whose state data is to be copied into this Exception.
          */
-        InvalidMarkException( const lang::Exception& ex )
-        : lang::exceptions::IllegalStateException() {
-            *(lang::Exception*)this = ex;
-        }
+        InvalidMarkException(const lang::Exception& ex);
 
         /**
          * Copy Constructor
@@ -49,62 +46,39 @@ namespace nio{
          * @param ex
          *      The Exception whose state data is to be copied into this Exception.
          */
-        InvalidMarkException( const InvalidMarkException& ex )
-        : lang::exceptions::IllegalStateException() {
-            *(lang::Exception*)this = ex;
-        }
+        InvalidMarkException(const InvalidMarkException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        InvalidMarkException( const char* file, const int lineNumber,
-                              const std::exception* cause,
-                              const char* msg, ... )
-            : lang::exceptions::IllegalStateException( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        InvalidMarkException(const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        InvalidMarkException( const std::exception* cause )
-            : lang::exceptions::IllegalStateException( cause ) {}
+        InvalidMarkException(const std::exception* cause);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        InvalidMarkException( const char* file, const int lineNumber,
-                              const char* msg, ... )
-        : lang::exceptions::IllegalStateException() {
-
-            va_list vargs ;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        InvalidMarkException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -114,10 +88,10 @@ namespace nio{
          * @return A new Exception instance that is a copy of this Exception.
          */
         virtual InvalidMarkException* clone() const {
-            return new InvalidMarkException( *this );
+            return new InvalidMarkException(*this);
         }
 
-        virtual ~InvalidMarkException() throw() {}
+        virtual ~InvalidMarkException() throw();
 
     };
 

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.cpp?rev=1407255&view=auto
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.cpp (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.cpp Thu Nov  8 20:20:28 2012
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "ReadOnlyBufferException.h"
+
+using namespace decaf;
+using namespace decaf::nio;
+using namespace decaf::lang;
+using namespace decaf::lang::exceptions;
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::ReadOnlyBufferException() : lang::exceptions::UnsupportedOperationException() {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::~ReadOnlyBufferException() throw () {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::ReadOnlyBufferException(const lang::Exception& ex) : lang::exceptions::UnsupportedOperationException() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::ReadOnlyBufferException(const ReadOnlyBufferException& ex) : lang::exceptions::UnsupportedOperationException() {
+    *(lang::Exception*) this = ex;
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::ReadOnlyBufferException(
+    const char* file, const int lineNumber, const std::exception* cause, const char* msg, ...) : lang::exceptions::UnsupportedOperationException(cause) {
+
+    va_list vargs;
+    va_start( vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::ReadOnlyBufferException(const std::exception* cause) : lang::exceptions::UnsupportedOperationException(cause) {
+}
+
+////////////////////////////////////////////////////////////////////////////////
+ReadOnlyBufferException::ReadOnlyBufferException(
+    const char* file, const int lineNumber, const char* msg, ...) : lang::exceptions::UnsupportedOperationException() {
+
+    va_list vargs;
+    va_start(vargs, msg);
+    buildMessage(msg, vargs);
+
+    // Set the first mark for this exception.
+    setMark(file, lineNumber);
+}

Propchange: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.h?rev=1407255&r1=1407254&r2=1407255&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/nio/ReadOnlyBufferException.h Thu Nov  8 20:20:28 2012
@@ -21,85 +21,62 @@
 #include <decaf/util/Config.h>
 #include <decaf/lang/exceptions/UnsupportedOperationException.h>
 
-namespace decaf{
-namespace nio{
+namespace decaf {
+namespace nio {
 
-    class DECAF_API ReadOnlyBufferException :
-        public lang::exceptions::UnsupportedOperationException {
+    class DECAF_API ReadOnlyBufferException : public lang::exceptions::UnsupportedOperationException {
     public:
 
         /**
          * Default Constructor
          */
-        ReadOnlyBufferException() {}
+        ReadOnlyBufferException();
 
         /**
          * Copy Constructor
+         *
          * @param ex the exception to copy
          */
-        ReadOnlyBufferException( const lang::Exception& ex )
-        : lang::exceptions::UnsupportedOperationException() {
-            *(lang::Exception*)this = ex;
-        }
+        ReadOnlyBufferException(const lang::Exception& ex);
 
         /**
          * Copy Constructor
+         *
          * @param ex the exception to copy, which is an instance of this type
          */
-        ReadOnlyBufferException( const ReadOnlyBufferException& ex )
-        : lang::exceptions::UnsupportedOperationException() {
-            *(lang::Exception*)this = ex;
-        }
+        ReadOnlyBufferException(const ReadOnlyBufferException& ex);
 
         /**
          * Constructor - Initializes the file name and line number where
          * this message occurred.  Sets the message to report, using an
          * optional list of arguments to parse into the message
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param cause The exception that was the cause for this one to be thrown.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        ReadOnlyBufferException( const char* file, const int lineNumber,
-                                 const std::exception* cause,
-                                 const char* msg, ... )
-            : lang::exceptions::UnsupportedOperationException( cause )
-        {
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        ReadOnlyBufferException(const char* file, const int lineNumber,
+                                const std::exception* cause, const char* msg, ...);
 
         /**
          * Constructor
+         *
          * @param cause Pointer to the exception that caused this one to
          * be thrown, the object is cloned caller retains ownership.
          */
-        ReadOnlyBufferException( const std::exception* cause )
-            : lang::exceptions::UnsupportedOperationException( cause ) {}
+        ReadOnlyBufferException(const std::exception* cause);
 
         /**
          * Constructor
+         *
          * @param file The file name where exception occurs
          * @param lineNumber The line number where the exception occurred.
          * @param msg The message to report
          * @param ... list of primitives that are formatted into the message
          */
-        ReadOnlyBufferException( const char* file, const int lineNumber,
-                                  const char* msg, ... )
-        : lang::exceptions::UnsupportedOperationException() {
-
-            va_list vargs;
-            va_start( vargs, msg );
-            buildMessage( msg, vargs );
-
-            // Set the first mark for this exception.
-            setMark( file, lineNumber );
-        }
+        ReadOnlyBufferException(const char* file, const int lineNumber, const char* msg, ...);
 
         /**
          * Clones this exception.  This is useful for cases where you need
@@ -107,10 +84,10 @@ namespace nio{
          * All subclasses should override.
          */
         virtual ReadOnlyBufferException* clone() const {
-            return new ReadOnlyBufferException( *this );
+            return new ReadOnlyBufferException(*this);
         }
 
-        virtual ~ReadOnlyBufferException() throw() {}
+        virtual ~ReadOnlyBufferException() throw ();
 
     };
 



Mime
View raw message