[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-commits
Subject: svn commit: r599922 - in
From: tabish () apache ! org
Date: 2007-11-30 19:21:37
Message-ID: 20071130192137.B189B1A983A () eris ! apache ! org
[Download RAW message or body]
Author: tabish
Date: Fri Nov 30 11:21:36 2007
New Revision: 599922
URL: http://svn.apache.org/viewvc?rev=599922&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-103
Starting the NIO implementation
Modified:
activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp
activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.h
Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp?rev=599922&r1=599921&r2=599922&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.cpp Fri Nov 30 \
11:21:36 2007 @@ -33,3 +33,120 @@
: Buffer( capacity ) {
}
+
+////////////////////////////////////////////////////////////////////////////////
+std::string CharBuffer::toString() const {
+
+ return ""; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::append( char value )
+ throw ( BufferOverflowException, ReadOnlyBufferException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::append( const CharSequence* value )
+ throw ( BufferOverflowException, ReadOnlyBufferException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::append( const CharSequence* value, std::size_t start, \
std::size_t end ) + throw ( decaf::lang::exceptions::IndexOutOfBoundsException,
+ BufferOverflowException, ReadOnlyBufferException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+char CharBuffer::charAt( std::size_t index )
+ throw( decaf::lang::exceptions::IndexOutOfBoundsException ) {
+
+ return (char)index; // TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::get( std::vector<char> buffer )
+ throw ( BufferUnderflowException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::get( char* buffer, std::size_t offset, std::size_t length )
+ throw( BufferUnderflowException,
+ lang::exceptions::NullPointerException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::put( CharBuffer& src )
+ throw( BufferOverflowException, ReadOnlyBufferException,
+ lang::exceptions::IllegalArgumentException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::put( const char* buffer, std::size_t offset, std::size_t \
length ) + throw( BufferOverflowException, ReadOnlyBufferException,
+ lang::exceptions::NullPointerException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::put( std::vector<char>& buffer )
+ throw( BufferOverflowException, ReadOnlyBufferException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::put( const std::string& src, std::size_t start, std::size_t \
end ) + throw( BufferOverflowException, ReadOnlyBufferException,
+ decaf::lang::exceptions::IndexOutOfBoundsException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+CharBuffer& CharBuffer::put( const std::string src )
+ throw( BufferOverflowException, ReadOnlyBufferException ) {
+
+ return *this; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+std::size_t CharBuffer::read( CharBuffer* target )
+ throw ( decaf::lang::exceptions::NullPointerException,
+ ReadOnlyBufferException ) {
+
+ return string::npos; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+int CharBuffer::compareTo( const CharBuffer& value ) const {
+
+ return 0; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool CharBuffer::equals( const CharBuffer& value ) const {
+ return false; //TODO
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool CharBuffer::operator==( const CharBuffer& value ) const {
+ return this->equals( value );
+}
+
+////////////////////////////////////////////////////////////////////////////////
+bool CharBuffer::operator<( const CharBuffer& value ) const {
+ return this->compareTo( value ) < 0 ? true : false;
+}
Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.h?rev=599922&r1=599921&r2=599922&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/nio/CharBuffer.h Fri Nov 30 \
11:21:36 2007 @@ -25,7 +25,6 @@
#include <decaf/nio/BufferUnderflowException.h>
#include <decaf/nio/BufferOverflowException.h>
#include <decaf/nio/ReadOnlyBufferException.h>
-#include <decaf/io/IOException.h>
#include <decaf/lang/CharSequence.h>
#include <decaf/lang/Appendable.h>
@@ -415,7 +414,7 @@
*/
virtual std::size_t read( CharBuffer* target )
throw ( decaf::lang::exceptions::NullPointerException,
- decaf::io::IOException, ReadOnlyBufferException );
+ ReadOnlyBufferException );
/**
* Creates a new character buffer that represents the specified subsequence \
of
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic