added operator = (const osiTime &)

This commit is contained in:
Jeff Hill
2000-12-21 21:53:47 +00:00
parent d95e8b2822
commit fdb3b85bde

View File

@@ -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);