[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-commits
Subject: svn commit: r599859 -
From: tabish () apache ! org
Date: 2007-11-30 16:26:18
Message-ID: 20071130162618.742021A9838 () eris ! apache ! org
[Download RAW message or body]
Author: tabish
Date: Fri Nov 30 08:26:15 2007
New Revision: 599859
URL: http://svn.apache.org/viewvc?rev=599859&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103
Starting the NIO implementation; CharBuffer
Added:
activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Appendable.h (with props)
Added: activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Appendable.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Appendable.h?rev=599859&view=auto
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Appendable.h (added)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Appendable.h Fri Nov 30 \
08:26:15 2007 @@ -0,0 +1,72 @@
+/*
+ * 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_LANG_APPENDABLE_H_
+#define _DECAF_LANG_APPENDABLE_H_
+
+#include <decaf/lang/Exception.h>
+
+namespace decaf{
+namespace lang{
+
+ class CharSequence;
+
+ class Appendable {
+ public:
+
+ virtual ~Appendable() {}
+
+ /**
+ * Appends the specified character to this Appendable.
+ * @param value - The character to append
+ * @returns a Reference to this Appendable
+ * @throws Exception if an error occurs.
+ */
+ virtual Appendable& append( char value ) throw( decaf::lang::Exception ) = \
0; +
+ /**
+ * Appends the specified character sequence to this Appendable.
+ * @param csq - The character sequence from which a subsequence will be \
appended. + * If csq is NULL, then characters will be appended as if csq \
contained the + * string "null".
+ * @returns a Reference to this Appendable
+ * @throws Exception if an error occurs.
+ */
+ virtual Appendable& append( const CharSequence* csq )
+ throw ( decaf::lang::Exception ) = 0;
+
+ /**
+ * Appends a subsequence of the specified character sequence to this \
Appendable. + * @param csq - The character sequence from which a subsequence \
will be appended. + * If csq is NULL, then characters will be appended as if \
csq contained the + * string "null".
+ * @param start - The index of the first character in the subsequence
+ * @param end - The index of the character following the last character in \
the subsequence + * @returns a Reference to this Appendable
+ * @throws Exception if an error occurs.
+ * @throws IndexOutOfBoundsException start is greater than end, or end is
+ * greater than csq.length()
+ */
+ virtual Appendable& append( const CharSequence* csq,
+ std::size_t start, std::size_t end )
+ throw( decaf::lang::Exception ) = 0;
+
+ };
+
+}}
+
+#endif /*_DECAF_LANG_APPENDABLE_H_*/
Propchange: activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Appendable.h
------------------------------------------------------------------------------
svn:eol-style = native
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic