You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by gr...@apache.org on 2011/02/01 11:11:21 UTC

svn commit: r1065978 - in /incubator/etch/trunk/binding-cpp/runtime/src/main: CMakeLists.txt common/EtchBool.cpp common/EtchByte.cpp common/EtchDouble.cpp common/EtchFloat.cpp common/EtchLong.cpp common/EtchShort.cpp

Author: grandyho
Date: Tue Feb  1 10:11:21 2011
New Revision: 1065978

URL: http://svn.apache.org/viewvc?rev=1065978&view=rev
Log:
ETCH-150 added primitive type implementations

Added:
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchBool.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchByte.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchDouble.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchFloat.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchLong.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchShort.cpp
Modified:
    incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt

Modified: incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt?rev=1065978&r1=1065977&r2=1065978&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt (original)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt Tue Feb  1 10:11:21 2011
@@ -22,6 +22,12 @@ add_library (etch-cpp STATIC
     common/EtchObject.cpp
     common/EtchString.cpp
     common/EtchInt32.cpp
+    common/EtchBool.cpp
+    common/EtchByte.cpp
+    common/EtchShort.cpp
+    common/EtchLong.cpp
+    common/EtchFloat.cpp
+    common/EtchDouble.cpp
     util/EtchUtil.cpp
 )
 

Added: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchBool.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchBool.cpp?rev=1065978&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchBool.cpp (added)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchBool.cpp Tue Feb  1 10:11:21 2011
@@ -0,0 +1,41 @@
+/* $Id$ 
+ * 
+ * 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 "common/EtchBool.h"
+
+EtchBool::EtchBool()
+    : EtchObject(EtchBool::TYPE_ID)
+    , m_value(false)
+{
+}
+
+EtchBool::EtchBool(bool value)
+    : EtchObject(EtchBool::TYPE_ID)
+    , m_value(value)
+{
+}
+
+void EtchBool::set(bool value)
+{
+    m_value = value;
+}
+
+bool EtchBool::get()
+{
+    return m_value;
+}

Added: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchByte.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchByte.cpp?rev=1065978&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchByte.cpp (added)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchByte.cpp Tue Feb  1 10:11:21 2011
@@ -0,0 +1,41 @@
+/* $Id$ 
+ * 
+ * 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 "common/EtchByte.h"
+
+EtchByte::EtchByte()
+    : EtchObject(EtchByte::TYPE_ID)
+    , m_value(0)
+{
+}
+
+EtchByte::EtchByte(int8_t value)
+    : EtchObject(EtchByte::TYPE_ID)
+    , m_value(value)
+{
+}
+
+void EtchByte::set(int8_t value)
+{
+    m_value = value;
+}
+
+int8_t EtchByte::get()
+{
+    return m_value;
+}

Added: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchDouble.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchDouble.cpp?rev=1065978&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchDouble.cpp (added)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchDouble.cpp Tue Feb  1 10:11:21 2011
@@ -0,0 +1,41 @@
+/* $Id$ 
+ * 
+ * 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 "common/EtchDouble.h"
+
+EtchDouble::EtchDouble()
+    : EtchObject(EtchDouble::TYPE_ID)
+    , m_value(0.0L)
+{
+}
+
+EtchDouble::EtchDouble(double value)
+    : EtchObject(EtchDouble::TYPE_ID)
+    , m_value(value)
+{
+}
+
+void EtchDouble::set(double value)
+{
+    m_value = value;
+}
+
+double EtchDouble::get()
+{
+    return m_value;
+}

Added: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchFloat.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchFloat.cpp?rev=1065978&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchFloat.cpp (added)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchFloat.cpp Tue Feb  1 10:11:21 2011
@@ -0,0 +1,41 @@
+/* $Id$ 
+ * 
+ * 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 "common/EtchFloat.h"
+
+EtchFloat::EtchFloat()
+    : EtchObject(EtchFloat::TYPE_ID)
+    , m_value(0.0f)
+{
+}
+
+EtchFloat::EtchFloat(float value)
+    : EtchObject(EtchFloat::TYPE_ID)
+    , m_value(value)
+{
+}
+
+void EtchFloat::set(float value)
+{
+    m_value = value;
+}
+
+float EtchFloat::get()
+{
+    return m_value;
+}

Added: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchLong.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchLong.cpp?rev=1065978&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchLong.cpp (added)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchLong.cpp Tue Feb  1 10:11:21 2011
@@ -0,0 +1,41 @@
+/* $Id$ 
+ * 
+ * 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 "common/EtchLong.h"
+
+EtchLong::EtchLong()
+    : EtchObject(EtchLong::TYPE_ID)
+    , m_value(0)
+{
+}
+
+EtchLong::EtchLong(int64_t value)
+    : EtchObject(EtchLong::TYPE_ID)
+    , m_value(value)
+{
+}
+
+void EtchLong::set(int64_t value)
+{
+    m_value = value;
+}
+
+int64_t EtchLong::get()
+{
+    return m_value;
+}

Added: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchShort.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchShort.cpp?rev=1065978&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchShort.cpp (added)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchShort.cpp Tue Feb  1 10:11:21 2011
@@ -0,0 +1,41 @@
+/* $Id$ 
+ * 
+ * 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 "common/EtchShort.h"
+
+EtchShort::EtchShort()
+    : EtchObject(EtchShort::TYPE_ID)
+    , m_value(0)
+{
+}
+
+EtchShort::EtchShort(int16_t value)
+    : EtchObject(EtchShort::TYPE_ID)
+    , m_value(value)
+{
+}
+
+void EtchShort::set(int16_t value)
+{
+    m_value = value;
+}
+
+int16_t EtchShort::get()
+{
+    return m_value;
+}