svn commit: r595126 - in /activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio: ByteArrayPerspective.cpp ByteArrayPerspective.h

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r595126 - in /activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio: ByteArrayPerspective.cpp ByteArrayPerspective.h

tabish
Author: tabish
Date: Wed Nov 14 15:26:15 2007
New Revision: 595126

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

Working on the NIO package

Added:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.cpp
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.h

Added: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.cpp?rev=595126&view=auto
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.cpp (added)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.cpp Wed Nov 14 15:26:15 2007
@@ -0,0 +1,30 @@
+/*
+ * 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 "ByteArrayPerspective.h"
+
+using namespace decaf;
+using namespace decaf::internal;
+using namespace decaf::internal::nio;
+
+///////////////////////////////////////////////////////////////////////////////
+ByteArrayPerspective::ByteArrayPerspective() {
+}
+
+///////////////////////////////////////////////////////////////////////////////
+ByteArrayPerspective::~ByteArrayPerspective() {
+}

Added: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.h?rev=595126&view=auto
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.h (added)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/nio/ByteArrayPerspective.h Wed Nov 14 15:26:15 2007
@@ -0,0 +1,43 @@
+/*
+ * 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_INTERNAL_NIO_BYTEARRAYPERSPECTIVE_H_
+#define _DECAF_INTERNAL_NIO_BYTEARRAYPERSPECTIVE_H_
+
+#include <decaf/internal/nio/ByteArray.h>
+
+namespace decaf{
+namespace internal{
+namespace nio{
+
+    /**
+     * This class represents a view into a parent ByteArray object.  This view
+     * references the same underlying data as the parent but can define a smaller
+     * window into to array.
+     */
+    class ByteArrayPerspective {
+    private:
+    public:
+
+        ByteArrayPerspective();
+        virtual ~ByteArrayPerspective();
+
+    };
+
+}}}
+
+#endif /*_DECAF_INTERNAL_NIO_BYTEARRAYPERSPECTIVE_H_*/