Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 74611 invoked from network); 24 Apr 2007 19:19:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2007 19:19:26 -0000 Received: (qmail 64950 invoked by uid 500); 24 Apr 2007 19:19:33 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 64899 invoked by uid 500); 24 Apr 2007 19:19:33 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 64890 invoked by uid 99); 24 Apr 2007 19:19:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 12:19:32 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 12:19:25 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 3A0AE1A9838; Tue, 24 Apr 2007 12:19:05 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070424191905.3A0AE1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 + +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 -#include +#include #include #include @@ -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 +#include #include #include @@ -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: