Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 69708 invoked from network); 10 Jun 2007 20:33:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2007 20:33:48 -0000 Received: (qmail 48817 invoked by uid 500); 10 Jun 2007 20:33:51 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 48791 invoked by uid 500); 10 Jun 2007 20:33:51 -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 48782 invoked by uid 99); 10 Jun 2007 20:33:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2007 13:33:51 -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; Sun, 10 Jun 2007 13:33:46 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 43F021A981A; Sun, 10 Jun 2007 13:33:26 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r545930 - in /activemq/activemq-cpp/trunk/src/decaf: src/examples/ src/main/decaf/lang/ src/main/decaf/net/ vs2005-build/ Date: Sun, 10 Jun 2007 20:33:25 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070610203326.43F021A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Sun Jun 10 13:33:24 2007 New Revision: 545930 URL: http://svn.apache.org/viewvc?view=rev&rev=545930 Log: https://issues.apache.org/activemq/browse/AMQCPP-103 Building up the Decaf Library Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.cpp activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.cpp activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.vcproj Modified: activemq/activemq-cpp/trunk/src/decaf/src/examples/ (props changed) activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.h activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.h activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.h activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ServerSocket.cpp Propchange: activemq/activemq-cpp/trunk/src/decaf/src/examples/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Sun Jun 10 13:33:24 2007 @@ -0,0 +1 @@ +Makefile.in Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp?view=auto&rev=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp (added) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.cpp Sun Jun 10 13:33:24 2007 @@ -0,0 +1,38 @@ +/* + * 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 "Boolean.h" + +using namespace decaf::lang; + +//////////////////////////////////////////////////////////////////////////////// +bool Boolean::parseBoolean( const std::string& value ) +{ + bool ret = 0; + std::istringstream istream(value); + istream.clear(); + istream >> std::boolalpha >> ret; + return ret; +} + +//////////////////////////////////////////////////////////////////////////////// +std::string Boolean::toString( bool value ) +{ + std::ostringstream ostream; + ostream << std::boolalpha << value; + return ostream.str(); +} Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.h?view=diff&rev=545930&r1=545929&r2=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.h (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Boolean.h Sun Jun 10 13:33:24 2007 @@ -35,24 +35,14 @@ * @param String to parse * @return bool value */ - static bool parseBoolean( const std::string& value ){ - bool ret = 0; - std::istringstream istream(value); - istream.clear(); - istream >> std::boolalpha >> ret; - return ret; - } + static bool parseBoolean( const std::string& value ); /** * Converts the bool to a String representation * @param bool to convert * @return string representation */ - static std::string toString( bool value ){ - std::ostringstream ostream; - ostream << std::boolalpha << value; - return ostream.str(); - } + static std::string toString( bool value ); }; Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.cpp?view=auto&rev=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.cpp (added) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.cpp Sun Jun 10 13:33:24 2007 @@ -0,0 +1,38 @@ +/* + * 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 "Integer.h" + +using namespace decaf::lang; + +//////////////////////////////////////////////////////////////////////////////// +int Integer::parseInt( const std::string& value ) +{ + int ret = 0; + std::istringstream istream(value); + istream.clear(); + istream >> ret; + return ret; +} + +//////////////////////////////////////////////////////////////////////////////// +std::string Integer::toString( int value ) +{ + std::ostringstream ostream; + ostream << value; + return ostream.str(); +} Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.h?view=diff&rev=545930&r1=545929&r2=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.h (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Integer.h Sun Jun 10 13:33:24 2007 @@ -35,24 +35,14 @@ * @param String to parse * @return int value */ - static int parseInt( const std::string& value ){ - int ret = 0; - std::istringstream istream(value); - istream.clear(); - istream >> ret; - return ret; - } + static int parseInt( const std::string& value ); /** * Converts the int to a String representation * @param int to convert * @return string representation */ - static std::string toString( int value ){ - std::ostringstream ostream; - ostream << value; - return ostream.str(); - } + static std::string toString( int value ); }; Added: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.cpp?view=auto&rev=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.cpp (added) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.cpp Sun Jun 10 13:33:24 2007 @@ -0,0 +1,38 @@ +/* + * 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 "Long.h" + +using namespace decaf::lang; + +//////////////////////////////////////////////////////////////////////////////// +long long Long::parseLong( const std::string& value ) +{ + long long ret = 0; + std::istringstream istream(value); + istream.clear(); + istream >> ret; + return ret; +} + +//////////////////////////////////////////////////////////////////////////////// +std::string Long::toString( long long value ) +{ + std::ostringstream ostream; + ostream << value; + return ostream.str(); +} Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.h?view=diff&rev=545930&r1=545929&r2=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.h (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/lang/Long.h Sun Jun 10 13:33:24 2007 @@ -34,24 +34,14 @@ * @param String to parse * @return long value */ - static long long parseLong( const std::string& value ){ - long long ret = 0; - std::istringstream istream(value); - istream.clear(); - istream >> ret; - return ret; - } + static long long parseLong( const std::string& value ); /** * Converts the long to a String representation * @param long to convert * @return string representation */ - static std::string toString( long long value ){ - std::ostringstream ostream; - ostream << value; - return ostream.str(); - } + static std::string toString( long long value ); }; }} Modified: activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ServerSocket.cpp URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ServerSocket.cpp?view=diff&rev=545930&r1=545929&r2=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ServerSocket.cpp (original) +++ activemq/activemq-cpp/trunk/src/decaf/src/main/decaf/net/ServerSocket.cpp Sun Jun 10 13:33:24 2007 @@ -42,6 +42,7 @@ #include #include +using namespace decaf; using namespace decaf::net; #ifdef HAVE_WINSOCK2_H Added: activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln?view=auto&rev=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln (added) +++ activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.sln Sun Jun 10 13:33:24 2007 @@ -0,0 +1,39 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vs2005-decaf", "vs2005-decaf.vcproj", "{D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vs2005-decaf-unittests", "vs2005-decaf-unittests.vcproj", "{71582D83-8CC9-4C85-83BF-2E272B6DAE8A}" + ProjectSection(ProjectDependencies) = postProject + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} = {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + DebugDLL|Win32 = DebugDLL|Win32 + Release|Win32 = Release|Win32 + ReleaseDLL|Win32 = ReleaseDLL|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Debug|Win32.ActiveCfg = Debug|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Debug|Win32.Build.0 = Debug|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Release|Win32.ActiveCfg = Release|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.Release|Win32.Build.0 = Release|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {D85BD1AB-82E9-4012-BEBE-67AD5CE2E399}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Debug|Win32.ActiveCfg = Debug|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Debug|Win32.Build.0 = Debug|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.DebugDLL|Win32.ActiveCfg = DebugDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.DebugDLL|Win32.Build.0 = DebugDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Release|Win32.ActiveCfg = Release|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.Release|Win32.Build.0 = Release|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.ReleaseDLL|Win32.ActiveCfg = ReleaseDLL|Win32 + {71582D83-8CC9-4C85-83BF-2E272B6DAE8A}.ReleaseDLL|Win32.Build.0 = ReleaseDLL|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.vcproj URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.vcproj?view=auto&rev=545930 ============================================================================== --- activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.vcproj (added) +++ activemq/activemq-cpp/trunk/src/decaf/vs2005-build/vs2005-decaf.vcproj Sun Jun 10 13:33:24 2007 @@ -0,0 +1,794 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +