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 2014/03/18 14:18:02 UTC

svn commit: r1578861 - in /etch/trunk/binding-cpp/runtime: include/common/EtchDate.h src/main/common/EtchDate.cpp

Author: veithm
Date: Tue Mar 18 13:18:02 2014
New Revision: 1578861

URL: http://svn.apache.org/r1578861
Log:
Changing representation of datetime from time_t to int64_t

A datetime in Etch is always 64 bit long, independent of the platform.
However the time_t datatype depends on the platform so it is not a good
choice here.

Change-Id: I78cfc6962a600a635bac74522b886a3cfd765f6a

Modified:
    etch/trunk/binding-cpp/runtime/include/common/EtchDate.h
    etch/trunk/binding-cpp/runtime/src/main/common/EtchDate.cpp

Modified: etch/trunk/binding-cpp/runtime/include/common/EtchDate.h
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/include/common/EtchDate.h?rev=1578861&r1=1578860&r2=1578861&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/include/common/EtchDate.h (original)
+++ etch/trunk/binding-cpp/runtime/include/common/EtchDate.h Tue Mar 18 13:18:02 2014
@@ -38,7 +38,7 @@ public:
    * Constructor
    * @param value the time
    */
-  EtchDate(capu::time_t value);
+  EtchDate(capu::int64_t value);
 
   /**
    * Constructs a copy of EtchDate
@@ -54,12 +54,12 @@ public:
   /**
    * Sets time value.
    */
-  void set(capu::time_t value);
+  void set(capu::int64_t value);
 
   /**
    * Returns time value.
    */
-  capu::time_t get();
+  capu::int64_t get();
 
   /**
    * Returns hash code
@@ -68,7 +68,7 @@ public:
 
 private:
 
-  capu::time_t mValue;
+  capu::int64_t mValue;
 
 };
 

Modified: etch/trunk/binding-cpp/runtime/src/main/common/EtchDate.cpp
URL: http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/src/main/common/EtchDate.cpp?rev=1578861&r1=1578860&r2=1578861&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/src/main/common/EtchDate.cpp (original)
+++ etch/trunk/binding-cpp/runtime/src/main/common/EtchDate.cpp Tue Mar 18 13:18:02 2014
@@ -28,7 +28,7 @@ EtchDate::EtchDate()
   addObjectType(TYPE());
 }
 
-EtchDate::EtchDate(capu::time_t value)
+EtchDate::EtchDate(capu::int64_t value)
  : mValue(value) {
   addObjectType(TYPE());
 }
@@ -52,11 +52,11 @@ capu::bool_t EtchDate::equals(const Etch
   return tmp->mValue == this->mValue;
 }
 
-capu::time_t EtchDate::get() {
+capu::int64_t EtchDate::get() {
   return mValue;
 }
 
-void EtchDate::set(capu::time_t value) {
+void EtchDate::set(capu::int64_t value) {
   mValue = value;
 }