activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r563228 - in /activemq/activemq-cpp/trunk/src/decaf/src/main: Makefile.am decaf/lang/Math.cpp decaf/lang/Math.h
Date Mon, 06 Aug 2007 19:21:26 GMT
Author: tabish
Date: Mon Aug  6 12:21:25 2007
New Revision: 563228

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

Implementing the Primitive Wrappers fully

Added:
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.cpp
Modified:
    activemq/activemq-cpp/trunk/src/decaf/src/main/Makefile.am
    activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.h

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/Makefile.am
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/Makefile.am?view=diff&rev=563228&r1=563227&r2=563228
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/Makefile.am (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/Makefile.am Mon Aug  6 12:21:25 2007
@@ -33,6 +33,7 @@
    decaf/lang/Long.cpp \
    decaf/lang/Float.cpp \
    decaf/lang/Double.cpp \
+   decaf/lang/Math.cpp \
    decaf/io/BufferedOutputStream.cpp \
    decaf/io/BufferedInputStream.cpp \
    decaf/io/ByteArrayInputStream.cpp \

Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.cpp?view=auto&rev=563228
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.cpp (added)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.cpp Mon Aug  6 12:21:25
2007
@@ -0,0 +1,26 @@
+/**
+ * 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 "Math.h"
+
+using namespace decaf;
+using namespace decaf::lang;
+
+////////////////////////////////////////////////////////////////////////////////
+const double Math::E = 2.718281828459045;
+const double Math::PI = 3.141592653589793;
+

Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.h?view=diff&rev=563228&r1=563227&r2=563228
==============================================================================
--- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.h (original)
+++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Math.h Mon Aug  6 12:21:25 2007
@@ -18,6 +18,8 @@
 #ifndef _DECAF_LANG_MATH_H_
 #define _DECAF_LANG_MATH_H_
 
+#include <decaf/util/Config.h>
+
 #undef min
 #undef max
 
@@ -29,12 +31,16 @@
      * numeric operations such as the elementary exponential, logarithm,
      * square root, and trigonometric functions.
      */
-    class DECAF_API Math
-    {
+    class DECAF_API Math {
+    public:
+
+        static const double E;
+        static const double PI;
+
     public:
 
-        Math();
-        virtual ~Math();
+        Math() {}
+        virtual ~Math() {}
 
     public:
 



Mime
View raw message