From fdb3b85bde03c5fdb40634a14948b2ef4367e11e Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 21 Dec 2000 21:53:47 +0000 Subject: [PATCH] added operator = (const osiTime &) --- src/libCom/osi/osiTime.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libCom/osi/osiTime.h b/src/libCom/osi/osiTime.h index 833cd962e..fc5137197 100644 --- a/src/libCom/osi/osiTime.h +++ b/src/libCom/osi/osiTime.h @@ -133,6 +133,7 @@ public: // osiTime (); osiTime (const osiTime &t); + osiTime & operator = (const osiTime &rhs); // // convert to and from EPICS TS_STAMP format @@ -287,6 +288,13 @@ inline osiTime::osiTime () : secPastEpoch(0u), nSec(0u) {} inline osiTime::osiTime (const osiTime &t) : secPastEpoch (t.secPastEpoch), nSec (t.nSec) {} +inline osiTime & osiTime::operator = ( const osiTime &t ) +{ + this->secPastEpoch = t.secPastEpoch; + this->nSec = t.nSec; + return *this; +} + inline osiTime osiTime::operator - (const double &rhs) const { return osiTime::operator + (-rhs);