You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by ve...@apache.org on 2012/08/02 16:40:14 UTC

svn commit: r1368491 [1/8] - in /incubator/etch/trunk: ./ binding-cpp/runtime/ binding-cpp/runtime/include/common/ binding-cpp/runtime/include/serialization/ binding-cpp/runtime/include/transport/ binding-cpp/runtime/lib/capu/ binding-cpp/runtime/lib/c...

Author: veithm
Date: Thu Aug  2 14:40:08 2012
New Revision: 1368491

URL: http://svn.apache.org/viewvc?rev=1368491&view=rev
Log:
ETCH-132 Major changes in platform abstraction

Restructuring of os specific file hierarchy
Added QNX, Linux ARMv7 and Integrity ARMv7 support

Added Array, Ringbuffer and Queue containers
Added Math abstraction

Fixed warnings on windows Visual Studio build

Change-Id: Ifeb6d9a68452532de359a8d5305db1794d28ed29

Added:
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/.gitignore
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/acme.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/internal/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/internal/config.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/internal/macros.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/internal/plugins.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/plugins/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/plugins/GoogleMock.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/Integrity1002_armv7l_Emerald-P-ES1.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/Linux_X86_32.toolchain
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/toolchain/Linux.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/Linux_X86_64.toolchain
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/toolchain/Linux.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/Linux_armv7l.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/QNX_X86.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/Windows_X86_32.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme/toolchain/Windows_X86_64.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/modules/FindIP4.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/modules/FindLibRt.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/modules/FindNet.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/modules/FindRes.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/modules/FindSocket.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Array.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Queue.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/RingBuffer.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/Debug.h
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Comparator.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/Math.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/Memory.h
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Comparator.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/Time.h
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Comparator.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/UdpSocket.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Debug.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Integrity_ARM_V7L/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Integrity_ARM_V7L/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Debug.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/main.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Math.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Memory.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/main.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Time.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/UdpSocket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux_ARM_V7L/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux_ARM_V7L/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux_X86_32/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux_X86_32/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux_X86_64/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux_X86_64/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Math.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/NumericLimits.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Memory.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Mutex.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/QNX/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/QNX/Socket.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/QNX/StringUtils.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/QNX/UdpSocket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Time.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Thread.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/UdpSocket.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/CondVar.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/CondVar.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Debug.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/main.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Math.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Memory.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/main.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Mutex.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/Mutex.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/NumericLimits.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/NumericLimits.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/ServerSocket.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/ServerSocket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Socket.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/StringUtils.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Thread.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/Thread.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/Time.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows/UdpSocket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows_X86_32/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows_X86_32/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows_X86_64/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Windows_X86_64/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/util/Appender.h
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Comparator.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/util/Logger.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/util/Runnable.h
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/src/os/Math.cpp
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/src/util/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/src/util/Logger.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/container/ArrayTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/container/QueueTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/container/RingBufferTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/MemoryTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/NumericLimitsTest.cpp
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Comparator.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/TimeTest.cpp
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/UdpSocketTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/arch/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/arch/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/arch/X86_32/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/arch/X86_32/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/arch/X86_64/
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/arch/X86_64/AtomicOperation.inc
      - copied, changed from r1368489, incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/AtomicOperationTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/util/LoggerTest.cpp
Removed:
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/acme.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/internal/config.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/internal/externalProjects.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/internal/macros.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/toolchain/Linux.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/toolchain/Win32.toolchain
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/CondVar.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/Mutex.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/NumericLimits.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/ServerSocket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Win32/Thread.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/src/os/arch/Win32/Mutex.cpp
Modified:
    incubator/etch/trunk/.gitignore
    incubator/etch/trunk/binding-cpp/runtime/.gitignore
    incubator/etch/trunk/binding-cpp/runtime/CMakeLists.txt
    incubator/etch/trunk/binding-cpp/runtime/build.xml
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchArrayValue.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchBool.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchByte.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDate.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDouble.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchFloat.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashNative.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashSet.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchLong.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObject.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObjectHash.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchShort.h
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchString.h
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchField.h
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchStructValue.h
    incubator/etch/trunk/binding-cpp/runtime/include/transport/EtchTcpConnection.h
    incubator/etch/trunk/binding-cpp/runtime/include/transport/EtchTcpListener.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/CMakeLists.txt
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/cmake/modules/FindThread.cmake
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/CMakeLists.txt
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/Config.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/Error.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Comparator.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/Hash.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/HashSet.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/HashTable.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/container/List.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/CondVar.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/StringUtils.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/Thread.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/AtomicOperation.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/CondVar.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/CondVar.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Linux/Thread.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Mutex.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/NumericLimits.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/ServerSocket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Socket.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/StringUtils.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/os/arch/Thread.inc
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/include/capu/util/SmartPointer.h
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/container/HashSetTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/container/HashTableTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/container/ListTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/main.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/AtomicOperationTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/CondVarTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/MutexTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/ServerSocketTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/SocketTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/StringUtilsTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/os/ThreadTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/lib/capu/modules/capu/test/util/SmartPointerTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchArrayValue.cpp
    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/EtchDate.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/EtchInt32.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchLong.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchObject.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchShort.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchString.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/serialization/EtchField.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/serialization/EtchStructValue.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/main/support/EtchFreePool.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/test/CMakeLists.txt
    incubator/etch/trunk/binding-cpp/runtime/src/test/common/EtchHashSetTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/test/common/EtchHashTableTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/test/serialization/EtchBinaryTaggedDataInputOutputTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/test/serialization/EtchValidatorFloatTest.cpp
    incubator/etch/trunk/binding-cpp/runtime/src/test/util/EtchUtilTest.cpp

Modified: incubator/etch/trunk/.gitignore
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/.gitignore?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/.gitignore (original)
+++ incubator/etch/trunk/.gitignore Thu Aug  2 14:40:08 2012
@@ -1,2 +1,9 @@
 bin
 target
+*.user
+*.suo
+*.bak
+*.orig
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML

Modified: incubator/etch/trunk/binding-cpp/runtime/.gitignore
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/.gitignore?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/.gitignore (original)
+++ incubator/etch/trunk/binding-cpp/runtime/.gitignore Thu Aug  2 14:40:08 2012
@@ -1 +1,2 @@
-target
\ No newline at end of file
+target
+CMakeLists_local.txt
\ No newline at end of file

Modified: incubator/etch/trunk/binding-cpp/runtime/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/CMakeLists.txt?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/CMakeLists.txt (original)
+++ incubator/etch/trunk/binding-cpp/runtime/CMakeLists.txt Thu Aug  2 14:40:08 2012
@@ -14,7 +14,7 @@
 # See the License for the specific language governing permissions and 
 # limitations under the License. 
 #
-cmake_minimum_required (VERSION 2.8) 
+cmake_minimum_required (VERSION 2.8)
 project (etch-cpp)
 
 message (STATUS "using external libraries ${ETCH_EXTERNAL_DEPENDS}")
@@ -45,14 +45,16 @@ SET(GMOCK ${ETCH_EXTERNAL_DEPENDS}/gmock
 #Build external CAPU project (OS Abstraction)
 SET(CAPU_PROJECT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/lib/capu")
 SET(CAPU_CMAKE_BUILD_DIR "${CAPU_PROJECT_DIR}/build")
-SET(CAPU_CMAKE_TOOLCHAIN_DIR "${CAPU_PROJECT_DIR}/cmake/toolchain")
+SET(CAPU_CMAKE_TOOLCHAIN_DIR "${CAPU_PROJECT_DIR}/cmake/acme/toolchain")
 SET(CAPU_DELIVERABLE_DIR "${CAPU_PROJECT_DIR}/deliverable")
 IF(UNIX)
-  SET(CAPU_CMAKE_TOOLCHAIN_FILE "Linux.toolchain")
-  add_definitions("-DARCH_LINUX")
+  SET(CAPU_CMAKE_TOOLCHAIN_FILE "Linux_X86_32.toolchain")
+  add_definitions("-DOS_LINUX")
+  add_definitions("-DARCH_X86_32")
 ELSEIF(WIN32)
-  SET(CAPU_CMAKE_TOOLCHAIN_FILE "Win32.toolchain")
-  add_definitions("-DARCH_WIN32")
+  SET(CAPU_CMAKE_TOOLCHAIN_FILE "Windows_X86_32.toolchain")
+  add_definitions("-DOS_WINDOWS")
+  add_definitions("-DARCH_X86_32")
 ENDIF()
 
 include(ExternalProject)
@@ -62,13 +64,12 @@ ExternalProject_Add(
   BINARY_DIR "${CAPU_CMAKE_BUILD_DIR}"
   DOWNLOAD_COMMAND ""
   UPDATE_COMMAND ""
-  CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:PATH=${CAPU_CMAKE_TOOLCHAIN_DIR}/${CAPU_CMAKE_TOOLCHAIN_FILE} 
+  CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE:PATH=${CAPU_CMAKE_TOOLCHAIN_DIR}/${CAPU_CMAKE_TOOLCHAIN_FILE}
              -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-  INSTALL_COMMAND ""
 )
 
 #CAPU path
-SET(CAPU "${CAPU_PROJECT_DIR}/deliverable")
+SET(CAPU "${CAPU_PROJECT_DIR}/deliverable/capu")
 
 
 # Set definitions

Modified: incubator/etch/trunk/binding-cpp/runtime/build.xml
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/build.xml?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/build.xml (original)
+++ incubator/etch/trunk/binding-cpp/runtime/build.xml Thu Aug  2 14:40:08 2012
@@ -63,6 +63,7 @@
 
     <!-- Uncomment the generator you would like to use on your platform. If no generator is set explicitly the default generator will be used. -->
     <target name="do-build-main" if="USE.cmake">
+        <echo>"${basedir}/target"</echo>
         <cmake srcdir="${basedir}" bindir="${basedir}/target" buildtype="Debug" >
             <!--<generator name="Visual Studio 8 2005" platform="windows" />-->
             <!--<generator name="Visual Studio 9 2008" platform="windows" />-->
@@ -99,12 +100,12 @@
         <!-- Run CAPU Unit Tests -->
         <!-- Run CAPU Unit Tests on Windows-->
         <property name="executable-full-path"
-            location="lib/capu/deliverable/bin/Win32/Debug/capuTest.exe"/>
+            location="lib/capu/deliverable/capu/bin/Windows_X86_32/Debug/capuTest.exe"/>
         <exec executable="${executable-full-path}" osfamily="windows">
             <arg value="--gtest_output=xml:${testResultsDirectory}/"/>
         </exec>
         <!-- Run CAPU Unit Tests on Unix -->
-        <exec executable="lib/capu/deliverable/bin/Linux/capuTest" osfamily="unix">
+        <exec executable="lib/capu/deliverable/capu/bin/Linux_X86_32/capuTest" osfamily="unix">
             <arg value="--gtest_output=xml:${testResultsDirectory}/"/>
         </exec>
     

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchArrayValue.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchArrayValue.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchArrayValue.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchArrayValue.h Thu Aug  2 14:40:08 2012
@@ -1,128 +1,128 @@
-/* $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.
- */
-
-#ifndef __ETCHARRAYVALUE_H__
-#define __ETCHARRAYVALUE_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchNativeArray.h"
-#include "serialization/EtchType.h"
-
-/**
- * An array of values, where each value is of arbitrary type
- * chosen from the basic types boolean, byte, short, int,
- * long, float, double, String, an array of those, the extended
- * types ArrayValue and StructValue, and specific types supported
- * by ValueFactory.
- *
- * ArrayValue is not protected against concurrent access.
- */
-class EtchArrayValue : public EtchObject {
-public:
-
-  /**
-   * TypeId for ArrayValue.
-   */
-  static const EtchObjectType TYPE;
-
-  /**
-   * Constructs the ArrayValue.
-   * @param array
-   * @param size
-   * @param dim
-   * @param customStructType
-   * @param typeCode
-   *
-   */
-  EtchArrayValue(capu::SmartPointer<EtchNativeArrayBase> array, capu::int32_t size, capu::int8_t typeCode, EtchType* customStructType, capu::int32_t dim);
-
-  /**
-   * Constructs an array value with no type info. This is used perhaps
-   * by extern struct serializers.
-   * @param array
-   * @param size
-   */
-  EtchArrayValue(capu::SmartPointer<EtchNativeArrayBase> array, capu::int32_t size);
-
-  virtual ~EtchArrayValue();
-
-  /**
-   * @return the TypeCode for this array value.
-   * For example, if the array is int[][], then
-   * the type would be TypeCode.INT4.
-   */
-  capu::int8_t getTypeCode();
-
-  /**
-   * @return a struct type if a custom type code.
-   */
-  EtchType* getCustomStructType();
-
-  /**
-   * @return the dimsionality of the array.
-   * For example, if the array is int[][], the
-   * dimensionality would be 2.
-   */
-  capu::int32_t getDim();
-
-  /**
-   * @return the capacity of the array.
-   */
-  capu::int32_t getSize();
-
-  /**
-   * @return the number of elements in the array.
-   */
-  capu::int32_t getIndex();
-  
-  /**
-   * @return the number of elements in the array.
-   */
-  void setIndex(capu::int32_t val);
-
-
-  /**
-   * @param index
-   * @return the element at the specified index.
-   */
-  status_t get(capu::uint32_t index, capu::SmartPointer<EtchObject> &result);
-
-  /**
-   * Adds the value to the end of the array, making more space
-   * available if needed.
-   * @param value
-   */
-  status_t add(capu::SmartPointer<EtchObject> value);
-
-  /**
-   * @return the array value.
-   */
-  capu::SmartPointer<EtchNativeArrayBase> getArray();
-
-private:
-  capu::SmartPointer<EtchNativeArrayBase> mArray;
-  capu::int8_t mTypeCode;
-  EtchType* mCustomStructType;
-  capu::int32_t mDim;
-  capu::int32_t mAddIndex;
-  capu::int32_t mSize;
-};
-#endif	/* ETCHARRAYVALUE_H */
-
+/* $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.
+ */
+
+#ifndef __ETCHARRAYVALUE_H__
+#define __ETCHARRAYVALUE_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchNativeArray.h"
+#include "serialization/EtchType.h"
+
+/**
+ * An array of values, where each value is of arbitrary type
+ * chosen from the basic types boolean, byte, short, int,
+ * long, float, double, String, an array of those, the extended
+ * types ArrayValue and StructValue, and specific types supported
+ * by ValueFactory.
+ *
+ * ArrayValue is not protected against concurrent access.
+ */
+class EtchArrayValue : public EtchObject {
+public:
+
+  /**
+   * TypeId for ArrayValue.
+   */
+  static const EtchObjectType TYPE;
+
+  /**
+   * Constructs the ArrayValue.
+   * @param array
+   * @param size
+   * @param dim
+   * @param customStructType
+   * @param typeCode
+   *
+   */
+  EtchArrayValue(capu::SmartPointer<EtchNativeArrayBase> array, capu::int32_t size, capu::int8_t typeCode, EtchType* customStructType, capu::int32_t dim);
+
+  /**
+   * Constructs an array value with no type info. This is used perhaps
+   * by extern struct serializers.
+   * @param array
+   * @param size
+   */
+  EtchArrayValue(capu::SmartPointer<EtchNativeArrayBase> array, capu::int32_t size);
+
+  virtual ~EtchArrayValue();
+
+  /**
+   * @return the TypeCode for this array value.
+   * For example, if the array is int[][], then
+   * the type would be TypeCode.INT4.
+   */
+  capu::int8_t getTypeCode();
+
+  /**
+   * @return a struct type if a custom type code.
+   */
+  EtchType* getCustomStructType();
+
+  /**
+   * @return the dimsionality of the array.
+   * For example, if the array is int[][], the
+   * dimensionality would be 2.
+   */
+  capu::int32_t getDim();
+
+  /**
+   * @return the capacity of the array.
+   */
+  capu::uint32_t getSize();
+
+  /**
+   * @return the number of elements in the array.
+   */
+  capu::int32_t getIndex();
+  
+  /**
+   * @return the number of elements in the array.
+   */
+  void setIndex(capu::int32_t val);
+
+
+  /**
+   * @param index
+   * @return the element at the specified index.
+   */
+  status_t get(capu::uint32_t index, capu::SmartPointer<EtchObject> &result);
+
+  /**
+   * Adds the value to the end of the array, making more space
+   * available if needed.
+   * @param value
+   */
+  status_t add(capu::SmartPointer<EtchObject> value);
+
+  /**
+   * @return the array value.
+   */
+  capu::SmartPointer<EtchNativeArrayBase> getArray();
+
+private:
+  capu::SmartPointer<EtchNativeArrayBase> mArray;
+  capu::int8_t mTypeCode;
+  EtchType* mCustomStructType;
+  capu::int32_t mDim;
+  capu::int32_t mAddIndex;
+  capu::int32_t mSize;
+};
+#endif	/* ETCHARRAYVALUE_H */
+

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchBool.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchBool.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchBool.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchBool.h Thu Aug  2 14:40:08 2012
@@ -1,74 +1,74 @@
-/* $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.
- */
-
-#ifndef __ETCHBOOL_H__
-#define __ETCHBOOL_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-#include "common/EtchError.h"
-
-class EtchBool :
-public EtchObject {
-
-public:
-
-  /**
-   * EtchObjectType for EtchBool.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructs a EtchBool object.
-   */
-  EtchBool();
-
-  /**
-   * Constructs a EtchBool object with given value.
-   */
-  EtchBool(capu::bool_t value);
-
-  /**
-   * Sets bool value.
-   */
-  void set(capu::bool_t value);
-
-  /**
-   * Returns bool value.
-   */
-  capu::bool_t get();
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  capu::bool_t equals(const EtchObject * other) const;
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-private:
-
-  capu::bool_t mValue;
-};
-
-typedef capu::SmartPointer<EtchBool> EtchBoolPtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHBOOL_H__
+#define __ETCHBOOL_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+#include "common/EtchError.h"
+
+class EtchBool :
+public EtchObject {
+
+public:
+
+  /**
+   * EtchObjectType for EtchBool.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructs a EtchBool object.
+   */
+  EtchBool();
+
+  /**
+   * Constructs a EtchBool object with given value.
+   */
+  EtchBool(capu::bool_t value);
+
+  /**
+   * Sets bool value.
+   */
+  void set(capu::bool_t value);
+
+  /**
+   * Returns bool value.
+   */
+  capu::bool_t get();
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  capu::bool_t equals(const EtchObject * other) const;
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+private:
+
+  capu::bool_t mValue;
+};
+
+typedef capu::SmartPointer<EtchBool> EtchBoolPtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchByte.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchByte.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchByte.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchByte.h Thu Aug  2 14:40:08 2012
@@ -1,75 +1,75 @@
-/* $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.
- */
-
-#ifndef __ETCHBYTE_H__
-#define __ETCHBYTE_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-#include "common/EtchError.h"
-
-class EtchByte :
-public EtchObject {
-
-public:
-
-  /**
-   * EtchObjectType for EtchByte.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructs a EtchByte object.
-   */
-  EtchByte();
-
-  /**
-   * Constructs a EtchByte object with given value.
-   */
-  EtchByte(capu::int8_t value);
-
-  /**
-   * Sets byte value.
-   */
-  void set(capu::int8_t value);
-
-  /**
-   * Returns byte value.
-   */
-  capu::int8_t get();
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  capu::bool_t equals(const EtchObject * other) const;
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-private:
-
-  capu::int8_t mValue;
-
-};
-
-typedef capu::SmartPointer<EtchByte> EtchBytePtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHBYTE_H__
+#define __ETCHBYTE_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+#include "common/EtchError.h"
+
+class EtchByte :
+public EtchObject {
+
+public:
+
+  /**
+   * EtchObjectType for EtchByte.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructs a EtchByte object.
+   */
+  EtchByte();
+
+  /**
+   * Constructs a EtchByte object with given value.
+   */
+  EtchByte(capu::int8_t value);
+
+  /**
+   * Sets byte value.
+   */
+  void set(capu::int8_t value);
+
+  /**
+   * Returns byte value.
+   */
+  capu::int8_t get();
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  capu::bool_t equals(const EtchObject * other) const;
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+private:
+
+  capu::int8_t mValue;
+
+};
+
+typedef capu::SmartPointer<EtchByte> EtchBytePtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDate.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDate.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDate.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDate.h Thu Aug  2 14:40:08 2012
@@ -1,73 +1,73 @@
-/* $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.
- */
-
-#ifndef ETCHDATE_H
-#define ETCHDATE_H
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-
-class EtchDate : public EtchObject {
-public:
-
-  /**
-   * EtchObjectType for EtchDate.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructor
-   */
-  EtchDate();
-
-  /**
-   * Constructor
-   * @param value the time
-   */
-  EtchDate(capu::time_t value);
-
-  //Destructor
-  virtual ~EtchDate();
-
-  //overridden
-  capu::bool_t equals(const EtchObject* other) const;
-
-  /**
-   * Sets time value.
-   */
-  void set(capu::time_t value);
-
-  /**
-   * Returns time value.
-   */
-  capu::time_t get();
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-private:
-
-  capu::time_t mValue;
-
-};
-
-typedef capu::SmartPointer<EtchDate> EtchDatePtr;
-
-#endif /* ETCHDATE_H */
-
+/* $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.
+ */
+
+#ifndef ETCHDATE_H
+#define ETCHDATE_H
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+
+class EtchDate : public EtchObject {
+public:
+
+  /**
+   * EtchObjectType for EtchDate.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructor
+   */
+  EtchDate();
+
+  /**
+   * Constructor
+   * @param value the time
+   */
+  EtchDate(capu::time_t value);
+
+  //Destructor
+  virtual ~EtchDate();
+
+  //overridden
+  capu::bool_t equals(const EtchObject* other) const;
+
+  /**
+   * Sets time value.
+   */
+  void set(capu::time_t value);
+
+  /**
+   * Returns time value.
+   */
+  capu::time_t get();
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+private:
+
+  capu::time_t mValue;
+
+};
+
+typedef capu::SmartPointer<EtchDate> EtchDatePtr;
+
+#endif /* ETCHDATE_H */
+

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDouble.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDouble.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDouble.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchDouble.h Thu Aug  2 14:40:08 2012
@@ -1,75 +1,75 @@
-/* $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.
- */
-
-#ifndef __ETCHDOUBLE_H__
-#define __ETCHDOUBLE_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-#include "common/EtchError.h"
-
-class EtchDouble :
-public EtchObject {
-
-public:
-
-  /**
-   * EtchObjectType for EtchDouble.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructs a EtchDouble object.
-   */
-  EtchDouble();
-
-  /**
-   * Constructs a EtchDouble object with given value.
-   */
-  EtchDouble(capu::double_t value);
-
-  /**
-   * Sets double value.
-   */
-  void set(capu::double_t value);
-
-  /**
-   * Returns double value.
-   */
-  capu::double_t get();
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  capu::bool_t equals(const EtchObject * other) const;
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-private:
-
-  capu::double_t mValue;
-
-};
-
-typedef capu::SmartPointer<EtchDouble> EtchDoublePtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHDOUBLE_H__
+#define __ETCHDOUBLE_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+#include "common/EtchError.h"
+
+class EtchDouble :
+public EtchObject {
+
+public:
+
+  /**
+   * EtchObjectType for EtchDouble.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructs a EtchDouble object.
+   */
+  EtchDouble();
+
+  /**
+   * Constructs a EtchDouble object with given value.
+   */
+  EtchDouble(capu::double_t value);
+
+  /**
+   * Sets double value.
+   */
+  void set(capu::double_t value);
+
+  /**
+   * Returns double value.
+   */
+  capu::double_t get();
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  capu::bool_t equals(const EtchObject * other) const;
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+private:
+
+  capu::double_t mValue;
+
+};
+
+typedef capu::SmartPointer<EtchDouble> EtchDoublePtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchFloat.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchFloat.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchFloat.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchFloat.h Thu Aug  2 14:40:08 2012
@@ -1,75 +1,75 @@
-/* $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.
- */
-
-#ifndef __ETCHFLOAT_H__
-#define __ETCHFLOAT_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-#include "common/EtchError.h"
-
-class EtchFloat :
-public EtchObject {
-
-public:
-
-  /**
-   * EtchObjectType for EtchFloat.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructs a EtchFloat object.
-   */
-  EtchFloat();
-
-  /**
-   * Constructs a EtchFloat object with given value.
-   */
-  EtchFloat(capu::float_t value);
-
-  /**
-   * Sets float value.
-   */
-  void set(capu::float_t value);
-
-  /**
-   * Returns float value.
-   */
-  capu::float_t get();
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  capu::bool_t equals(const EtchObject * other) const;
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-private:
-
-  capu::float_t mValue;
-
-};
-
-typedef capu::SmartPointer<EtchFloat> EtchFloatPtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHFLOAT_H__
+#define __ETCHFLOAT_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+#include "common/EtchError.h"
+
+class EtchFloat :
+public EtchObject {
+
+public:
+
+  /**
+   * EtchObjectType for EtchFloat.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructs a EtchFloat object.
+   */
+  EtchFloat();
+
+  /**
+   * Constructs a EtchFloat object with given value.
+   */
+  EtchFloat(capu::float_t value);
+
+  /**
+   * Sets float value.
+   */
+  void set(capu::float_t value);
+
+  /**
+   * Returns float value.
+   */
+  capu::float_t get();
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  capu::bool_t equals(const EtchObject * other) const;
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+private:
+
+  capu::float_t mValue;
+
+};
+
+typedef capu::SmartPointer<EtchFloat> EtchFloatPtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashNative.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashNative.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashNative.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashNative.h Thu Aug  2 14:40:08 2012
@@ -26,15 +26,15 @@ class EtchHashNative {
 public:
 
   template<class T>
-  static capu::uint64_t Digest(T &key) {
+  static capu::uint32_t Digest(T &key) {
     return capu::Hash::Digest<T>(key);
   }
 
-  static capu::uint64_t Digest(char* key) {
+  static capu::uint32_t Digest(char* key) {
     return capu::Hash::Digest(key);
   }
 
-  static capu::uint64_t Digest(const char* key) {
+  static capu::uint32_t Digest(const char* key) {
     return capu::Hash::Digest(key);
   }
 

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashSet.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashSet.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashSet.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashSet.h Thu Aug  2 14:40:08 2012
@@ -81,7 +81,7 @@ public:
    * Returns count of the hashset.
    * @return number of element in hash table
    */
-  inline capu::uint64_t count();
+  inline capu::uint32_t count();
 
   /**
    * Clear all values of the hashset.
@@ -131,7 +131,7 @@ inline status_t EtchHashSet<T, H, C>::cl
 }
 
 template <class T, class H, class C>
-inline capu::uint64_t EtchHashSet<T, H, C>::count() {
+inline capu::uint32_t EtchHashSet<T, H, C>::count() {
   return mHashSet.count();
 }
 

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h Thu Aug  2 14:40:08 2012
@@ -48,7 +48,7 @@ public:
   /**
    * Constructs EtchHashTable.
    */
-  inline EtchHashTable(capu::uint64_t size);
+  inline EtchHashTable(capu::uint32_t size);
 
   /**
    * Destructure.
@@ -96,7 +96,7 @@ public:
    * Returns count of the EtchHashTable.
    * @return number of element in hash table
    */
-  inline capu::uint64_t count();
+  inline capu::uint32_t count();
 
   /**
    * Clear all key and values of the EtchHashTable.
@@ -126,7 +126,7 @@ inline EtchHashTable<Key, T, H, C>::Etch
 }
 
 template <class Key, class T, class H, class C>
-inline EtchHashTable<Key, T, H, C>::EtchHashTable(capu::uint64_t size)
+inline EtchHashTable<Key, T, H, C>::EtchHashTable(capu::uint32_t size)
 : EtchObject(EtchHashTable<Key, T, H, C>::TYPE()), mHashTable(size) {
 
 }
@@ -152,7 +152,7 @@ inline status_t EtchHashTable<Key, T, H,
 }
 
 template <class Key, class T, class H, class C>
-inline capu::uint64_t EtchHashTable<Key, T, H, C>::count() {
+inline capu::uint32_t EtchHashTable<Key, T, H, C>::count() {
   return mHashTable.count();
 }
 

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchInt32.h Thu Aug  2 14:40:08 2012
@@ -57,7 +57,7 @@ public:
   /**
    * Returns hash code
    */
-  capu::uint64_t getHashCode() const;
+  capu::uint32_t getHashCode() const;
 
   /**
    * @return true if two object is equal

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchLong.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchLong.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchLong.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchLong.h Thu Aug  2 14:40:08 2012
@@ -1,75 +1,75 @@
-/* $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.
- */
-
-#ifndef __ETCHLONG_H__
-#define __ETCHLONG_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-#include "common/EtchError.h"
-
-class EtchLong :
-public EtchObject {
-
-public:
-
-  /**
-   * EtchObjectType for EtchLong.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructs a EtchLong object.
-   */
-  EtchLong();
-
-  /**
-   * Constructs a EtchLong object with given value.
-   */
-  EtchLong(capu::int64_t value);
-
-  /**
-   * Sets long value.
-   */
-  void set(capu::int64_t value);
-
-  /**
-   * Returns long value.
-   */
-  capu::int64_t get();
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  capu::bool_t equals(const EtchObject * other) const;
-
-private:
-
-  capu::int64_t mValue;
-
-};
-
-typedef capu::SmartPointer<EtchLong> EtchLongPtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHLONG_H__
+#define __ETCHLONG_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+#include "common/EtchError.h"
+
+class EtchLong :
+public EtchObject {
+
+public:
+
+  /**
+   * EtchObjectType for EtchLong.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructs a EtchLong object.
+   */
+  EtchLong();
+
+  /**
+   * Constructs a EtchLong object with given value.
+   */
+  EtchLong(capu::int64_t value);
+
+  /**
+   * Sets long value.
+   */
+  void set(capu::int64_t value);
+
+  /**
+   * Returns long value.
+   */
+  capu::int64_t get();
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  capu::bool_t equals(const EtchObject * other) const;
+
+private:
+
+  capu::int64_t mValue;
+
+};
+
+typedef capu::SmartPointer<EtchLong> EtchLongPtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObject.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObject.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObject.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObject.h Thu Aug  2 14:40:08 2012
@@ -1,79 +1,79 @@
-/* $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.
- */
-
-#ifndef __ETCHOBJECT_H__
-#define __ETCHOBJECT_H__
-
-#include "capu/util/SmartPointer.h"
-#include "EtchConfig.h"
-
-class EtchObjectType;
-
-class EtchObject {
-public:
-
-  /**
-   * EtchObjectType for EtchObject.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructor.
-   */
-  EtchObject();
-
-  /**
-   * Constructor.
-   */
-  EtchObject(const EtchObjectType* type);
-
-  /**
-   * Destructor.
-   */
-  virtual ~EtchObject();
-
-/**
-   * Returns object type id of this type.
-   */
-  const EtchObjectType* GetObjectType() const;
-
-  /**
-   * Returns object type id of this object.
-   */
-  const EtchObjectType* getObjectType() const;
-
-  /**
-   * Returns hash code
-   */
-  virtual capu::uint64_t getHashCode() const;
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  virtual capu::bool_t equals(const EtchObject * other) const;
-
-private:
-
-  const EtchObjectType* mType;
-
-};
-
-typedef capu::SmartPointer<EtchObject> EtchObjectPtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHOBJECT_H__
+#define __ETCHOBJECT_H__
+
+#include "capu/util/SmartPointer.h"
+#include "EtchConfig.h"
+
+class EtchObjectType;
+
+class EtchObject {
+public:
+
+  /**
+   * EtchObjectType for EtchObject.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructor.
+   */
+  EtchObject();
+
+  /**
+   * Constructor.
+   */
+  EtchObject(const EtchObjectType* type);
+
+  /**
+   * Destructor.
+   */
+  virtual ~EtchObject();
+
+/**
+   * Returns object type id of this type.
+   */
+  const EtchObjectType* GetObjectType() const;
+
+  /**
+   * Returns object type id of this object.
+   */
+  const EtchObjectType* getObjectType() const;
+
+  /**
+   * Returns hash code
+   */
+  virtual capu::uint32_t getHashCode() const;
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  virtual capu::bool_t equals(const EtchObject * other) const;
+
+private:
+
+  const EtchObjectType* mType;
+
+};
+
+typedef capu::SmartPointer<EtchObject> EtchObjectPtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObjectHash.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObjectHash.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObjectHash.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchObjectHash.h Thu Aug  2 14:40:08 2012
@@ -24,15 +24,15 @@
 class EtchObjectHash {
 public:
 
-  static capu::uint64_t Digest(const EtchObject &key) {
+  static capu::uint32_t Digest(const EtchObject &key) {
     return key.getHashCode();
   }
 
-  static capu::uint64_t Digest(const EtchObject* key) {
+  static capu::uint32_t Digest(const EtchObject* key) {
     return key->getHashCode();
   }
 
-  static capu::uint64_t Digest(const capu::SmartPointer<EtchObject>& key) {
+  static capu::uint32_t Digest(const capu::SmartPointer<EtchObject>& key) {
     return key->getHashCode();
   }
 };

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchShort.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchShort.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchShort.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchShort.h Thu Aug  2 14:40:08 2012
@@ -1,75 +1,75 @@
-/* $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.
- */
-
-#ifndef __ETCHSHORT_H__
-#define __ETCHSHORT_H__
-
-#include "common/EtchObject.h"
-#include "common/EtchObjectType.h"
-#include "common/EtchError.h"
-
-class EtchShort :
-public EtchObject {
-
-public:
-
-  /**
-   * EtchObjectType for EtchShort.
-   */
-  static const EtchObjectType* TYPE();
-
-  /**
-   * Constructs a EtchShort object.
-   */
-  EtchShort();
-
-  /**
-   * Constructs a EtchShort object with given value.
-   */
-  EtchShort(capu::int16_t value);
-
-  /**
-   * Sets short value.
-   */
-  void set(capu::int16_t value);
-
-  /**
-   * Returns short value.
-   */
-  capu::int16_t get();
-
-  /**
-   * Returns hash code
-   */
-  capu::uint64_t getHashCode() const;
-
-  /**
-   * @return true if two object is equal
-   *         false otherwise
-   */
-  capu::bool_t equals(const EtchObject * other) const;
-
-private:
-
-  capu::int16_t mValue;
-
-};
-
-typedef capu::SmartPointer<EtchShort> EtchShortPtr;
-
-#endif
+/* $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.
+ */
+
+#ifndef __ETCHSHORT_H__
+#define __ETCHSHORT_H__
+
+#include "common/EtchObject.h"
+#include "common/EtchObjectType.h"
+#include "common/EtchError.h"
+
+class EtchShort :
+public EtchObject {
+
+public:
+
+  /**
+   * EtchObjectType for EtchShort.
+   */
+  static const EtchObjectType* TYPE();
+
+  /**
+   * Constructs a EtchShort object.
+   */
+  EtchShort();
+
+  /**
+   * Constructs a EtchShort object with given value.
+   */
+  EtchShort(capu::int16_t value);
+
+  /**
+   * Sets short value.
+   */
+  void set(capu::int16_t value);
+
+  /**
+   * Returns short value.
+   */
+  capu::int16_t get();
+
+  /**
+   * Returns hash code
+   */
+  capu::uint32_t getHashCode() const;
+
+  /**
+   * @return true if two object is equal
+   *         false otherwise
+   */
+  capu::bool_t equals(const EtchObject * other) const;
+
+private:
+
+  capu::int16_t mValue;
+
+};
+
+typedef capu::SmartPointer<EtchShort> EtchShortPtr;
+
+#endif

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchString.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchString.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchString.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchString.h Thu Aug  2 14:40:08 2012
@@ -150,7 +150,7 @@ public:
   /**
    * Returns hash code
    */
-  capu::uint64_t getHashCode() const;
+  capu::uint32_t getHashCode() const;
 
 private:
 

Modified: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchField.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchField.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchField.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchField.h Thu Aug  2 14:40:08 2012
@@ -53,7 +53,7 @@ public:
    * returns the hash code
    * @return hash value
    */
-  capu::uint64_t getHashCode() const;
+  capu::uint32_t getHashCode() const;
 
   /**
    * Compares two fields

Modified: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchStructValue.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchStructValue.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchStructValue.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchStructValue.h Thu Aug  2 14:40:08 2012
@@ -122,7 +122,7 @@ public:
    * Returns count of the EtchStructValue.
    * @return number of element in hash table
    */
-  capu::uint64_t count();
+  capu::uint32_t count();
 
   /**
    * Clear all key and values of the EtchStructValue.

Modified: incubator/etch/trunk/binding-cpp/runtime/include/transport/EtchTcpConnection.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/transport/EtchTcpConnection.h?rev=1368491&r1=1368490&r2=1368491&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/transport/EtchTcpConnection.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/transport/EtchTcpConnection.h Thu Aug  2 14:40:08 2012
@@ -1,155 +1,156 @@
-/* $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.
- */
-
-#ifndef __ETCHTCPCONNECTION_H__
-#define __ETCHTCPCONNECTION_H__
-#include "transport/EtchConnection.h"
-#include "common/EtchObject.h"
-#include "common/EtchError.h"
-#include "common/EtchString.h"
-#include "util/EtchURL.h"
-#include "util/EtchResources.h"
-#include "transport/EtchTransportData.h"
-#include "common/EtchSocket.h"
-#include "transport/EtchFlexBuffer.h"
-#include "transport/EtchSessionData.h"
-#include "transport/EtchTcpOption.h"
-
-/**
- * Implementation of connection which handles a tcp connection.
- */
-
-class EtchTcpConnection : public EtchConnection<EtchSessionData>, public EtchTransportData {
-public:
-
-  /**
-   * Constructs the Connection from a uri.
-   * @param socket
-   * @param uri
-   * @param resources
-   */
-  EtchTcpConnection(EtchSocket* socket, EtchURL* uri);
-
-  /**
-   * Destructor
-   */
-  ~EtchTcpConnection();
-
-  /**
-   * @see TransportData
-   */
-  virtual status_t transportControl(capu::SmartPointer<EtchObject> control, capu::SmartPointer<EtchObject> value);
-
-
-  /**
-   * @see TransportData
-   */
-  virtual status_t transportData(capu::SmartPointer<EtchWho> recipient, capu::SmartPointer<EtchFlexBuffer> buf);
-
-  /**
-   * @see TransportData
-   */
-  virtual status_t transportNotify(capu::SmartPointer<EtchObject> event);
-
-  /**
-   * @see TransportData
-   */
-  virtual status_t transportQuery(capu::SmartPointer<EtchObject> query, capu::SmartPointer<EtchObject> &result);
-
-  /**
-   * @return Session
-   */
-  virtual EtchSessionData* getSession();
-
-  /**
-   * Sets session
-   */
-  virtual void setSession(EtchSessionData* session);
-
-
-  /**
-   * @see EtchConnection
-   */
-  virtual capu::bool_t isStarted();
-
-  /**
-   * @see capu::thread
-   */
-  virtual void operator()(void * param);
-
-  /**
-   * @see EtchConnection
-   */
-  virtual status_t close();
-
-  /**
-   * @see EtchConnection
-   */
-  virtual status_t setupSocket();
-
-  /**
-   * Sends some data to the remote end. If the connection is buffered, the
-   * data is saved until the buffer is full or the buffer is flushed. If the
-   * connection is not buffered, the data is sent to the operating system
-   * immediately. The operating system may or may not transmit the data
-   * immediately, depending upon the noDelay setting.
-   * @param buf the bytes to be sent.
-   * @param off the offset into buf of the first byte to send.
-   * @param len the number of bytes to send.
-   * @return ETCH_OK if the sent is successful
-   *         ETCH_EINVAL if the buffer is NULL or socket is not opened
-   *         ETCH_ERROR otherwise
-   */
-  status_t send(capu::int8_t* buf, capu::uint32_t off, capu::uint32_t len);
-
-  /**
-   * Sets the number of connection attempts
-   * @param numAttempts
-   */
-  void setNumAttempts(capu::uint8_t numAttempts);
-
-private:
-  /**
-   * The session for the connection.
-   */
-  EtchSessionData* mSession;
-
-  //PORT
-  capu::uint16_t mPort;
-
-  //HOST ADDR
-  EtchString mHost;
-
-  //SOCKET
-  EtchSocket* mSocket;
-
-  //SOCKET OPTIONS
-  EtchTcpOption mOptions;
-
-  capu::uint8_t mNumAttempts;
-
-protected:
-
-  status_t readSocket();
-
-  status_t openSocket(capu::bool_t reconnect);
-
-};
-
-#endif /* ETCHTCPCONNECTION_H */
-
+/* $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.
+ */
+
+#ifndef __ETCHTCPCONNECTION_H__
+#define __ETCHTCPCONNECTION_H__
+#include "transport/EtchConnection.h"
+#include "common/EtchObject.h"
+#include "common/EtchError.h"
+#include "common/EtchString.h"
+#include "util/EtchURL.h"
+#include "util/EtchResources.h"
+#include "transport/EtchTransportData.h"
+#include "common/EtchSocket.h"
+#include "transport/EtchFlexBuffer.h"
+#include "transport/EtchSessionData.h"
+#include "transport/EtchTcpOption.h"
+#include "capu/util/Runnable.h"
+
+/**
+ * Implementation of connection which handles a tcp connection.
+ */
+
+class EtchTcpConnection : public EtchConnection<EtchSessionData>, public EtchTransportData, public capu::Runnable {
+public:
+
+  /**
+   * Constructs the Connection from a uri.
+   * @param socket
+   * @param uri
+   * @param resources
+   */
+  EtchTcpConnection(EtchSocket* socket, EtchURL* uri);
+
+  /**
+   * Destructor
+   */
+  ~EtchTcpConnection();
+
+  /**
+   * @see TransportData
+   */
+  virtual status_t transportControl(capu::SmartPointer<EtchObject> control, capu::SmartPointer<EtchObject> value);
+
+
+  /**
+   * @see TransportData
+   */
+  virtual status_t transportData(capu::SmartPointer<EtchWho> recipient, capu::SmartPointer<EtchFlexBuffer> buf);
+
+  /**
+   * @see TransportData
+   */
+  virtual status_t transportNotify(capu::SmartPointer<EtchObject> event);
+
+  /**
+   * @see TransportData
+   */
+  virtual status_t transportQuery(capu::SmartPointer<EtchObject> query, capu::SmartPointer<EtchObject> &result);
+
+  /**
+   * @return Session
+   */
+  virtual EtchSessionData* getSession();
+
+  /**
+   * Sets session
+   */
+  virtual void setSession(EtchSessionData* session);
+
+
+  /**
+   * @see EtchConnection
+   */
+  virtual capu::bool_t isStarted();
+
+  /**
+   * @see capu::thread
+   */
+  virtual void operator()(void * param);
+
+  /**
+   * @see EtchConnection
+   */
+  virtual status_t close();
+
+  /**
+   * @see EtchConnection
+   */
+  virtual status_t setupSocket();
+
+  /**
+   * Sends some data to the remote end. If the connection is buffered, the
+   * data is saved until the buffer is full or the buffer is flushed. If the
+   * connection is not buffered, the data is sent to the operating system
+   * immediately. The operating system may or may not transmit the data
+   * immediately, depending upon the noDelay setting.
+   * @param buf the bytes to be sent.
+   * @param off the offset into buf of the first byte to send.
+   * @param len the number of bytes to send.
+   * @return ETCH_OK if the sent is successful
+   *         ETCH_EINVAL if the buffer is NULL or socket is not opened
+   *         ETCH_ERROR otherwise
+   */
+  status_t send(capu::int8_t* buf, capu::uint32_t off, capu::uint32_t len);
+
+  /**
+   * Sets the number of connection attempts
+   * @param numAttempts
+   */
+  void setNumAttempts(capu::uint8_t numAttempts);
+
+private:
+  /**
+   * The session for the connection.
+   */
+  EtchSessionData* mSession;
+
+  //PORT
+  capu::uint16_t mPort;
+
+  //HOST ADDR
+  EtchString mHost;
+
+  //SOCKET
+  EtchSocket* mSocket;
+
+  //SOCKET OPTIONS
+  EtchTcpOption mOptions;
+
+  capu::uint8_t mNumAttempts;
+
+protected:
+
+  status_t readSocket();
+
+  status_t openSocket(capu::bool_t reconnect);
+
+};
+
+#endif /* ETCHTCPCONNECTION_H */
+