activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r532045 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io: Closeable.h InputStream.h OutputStream.h
Date Tue, 24 Apr 2007 19:19:05 GMT
Author: tabish
Date: Tue Apr 24 12:19:04 2007
New Revision: 532045

URL: http://svn.apache.org/viewvc?view=rev&rev=532045
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103

Building Decaf lib

Added:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/Closeable.h
Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.h

Added: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/Closeable.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/Closeable.h?view=auto&rev=532045
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/Closeable.h (added)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/Closeable.h Tue Apr 24 12:19:04
2007
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ */
+
+#ifndef _DECAF_IO_CLOSEABLE_H_
+#define _DECAF_IO_CLOSEABLE_H_
+
+#include <decaf/lang/Exception.h>
+
+namespace decaf{
+namespace io{
+
+    /**
+     * Interface for a class that implements the close method.
+     */
+    class Closeable{
+
+    public:
+
+        virtual ~Closeable(){}
+
+        /**
+         * Closes this object and deallocates the appropriate resources.
+         * The object is generally no longer usable after calling close.
+         * @throws CMSException
+         */
+        virtual void close() throw( lang::Exception ) = 0;
+
+    };
+}
+
+#endif /*_DECAF_IO_CLOSEABLE_H_*/

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h?view=diff&rev=532045&r1=532044&r2=532045
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/InputStream.h Tue Apr 24 12:19:04
2007
@@ -19,7 +19,7 @@
 #define _DECAF_IO_INPUTSTREAM_H_
 
 #include <decaf/io/IOException.h>
-#include <cms/Closeable.h>
+#include <decaf/io/Closeable.h>
 #include <activemq/concurrent/Synchronizable.h>
 #include <activemq/exceptions/UnsupportedOperationException.h>
 
@@ -29,12 +29,9 @@
     /**
      * Base interface for an input stream.
      */
-    class InputStream
-    :
-        public cms::Closeable,
-        public concurrent::Synchronizable
+    class InputStream : public Closeable,
+                        public concurrent::Synchronizable
     {
-
     public:
 
         virtual ~InputStream(){}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.h?view=diff&rev=532045&r1=532044&r2=532045
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/io/OutputStream.h Tue Apr 24 12:19:04
2007
@@ -18,7 +18,7 @@
 #ifndef _DECAF_IO_OUTPUTSTREAM_H
 #define _DECAF_IO_OUTPUTSTREAM_H
 
-#include <cms/Closeable.h>
+#include <decaf/io/Closeable.h>
 #include <decaf/io/IOException.h>
 #include <activemq/concurrent/Synchronizable.h>
 
@@ -28,10 +28,8 @@
     /**
      * Base interface for an output stream.
      */
-    class OutputStream
-    :
-        public cms::Closeable,
-        public concurrent::Synchronizable
+    class OutputStream : public Closeable,
+                         public concurrent::Synchronizable
     {
     public:
 



Mime
View raw message