Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
wat::Time Class Reference

Definition at line 65 of file time.hh.

Public Member Functions

 Time (INT_4S sec=0, INT_4U nsec=0)
 
 Time (TString date)
 
 Time (Time &time)
 
 Time (double dtime)
 
TString GetDateString ()
 
int GetDay ()
 
int GetDayOfYear ()
 
double GetDouble ()
 
INT_4S GetGPS ()
 
int GetHour ()
 
double GetJulianDate ()
 
int GetJulianDay ()
 
int GetLeapSecs ()
 
int GetMinute ()
 
double GetModJulianDate ()
 
int GetModJulianDay ()
 
int GetMonth ()
 
INT_4U GetNSec ()
 
INT_4S GetSec ()
 
int GetSecond ()
 
int GetYear ()
 
int GpsToGpsLeaps (int gps)
 
int GpsToGpsLeaps ()
 
int GpsToTaiLeaps (int gps)
 
int GpsToTaiLeaps ()
 
void GpsToUnix ()
 
int GpsToUnixTime ()
 
bool operator!= (Time &time)
 
Timeoperator*= (double &d)
 
Timeoperator+= (Time &time)
 
Timeoperator-= (Time &time)
 
double operator/ (Time &time)
 
Timeoperator/= (double &d)
 
bool operator< (Time &time)
 
bool operator<= (Time &time)
 
Timeoperator= (Time &time)
 
bool operator== (Time &time)
 
bool operator> (Time &time)
 
bool operator>= (Time &time)
 
void Print ()
 
void PrintLeapSecs ()
 
void SetDate (int ss, int mm, int hh, int DD, int MM, int YY, int nsec=0)
 
void SetDateString (TString date)
 
void SetDay (unsigned int day)
 
void SetDouble (double dt)
 
void SetHour (unsigned int hour)
 
void SetMinute (unsigned int min)
 
void SetMonth (unsigned int month)
 
INT_4U SetNSec (INT_4U nsec)
 
INT_4S SetSec (INT_4S s)
 
void SetSecond (unsigned int sec)
 
void SetString (char *date, int nsec=0)
 
void SetYear (unsigned int year)
 
void UnixToGps ()
 
int UnixToGpsLeaps (int unix_time)
 
int UnixToGpsLeaps ()
 
int UnixToTaiLeaps (int unix_time)
 
int UnixToTaiLeaps ()
 

Private Member Functions

void Error (char *msg)
 

Private Attributes

INT_4U mNSec
 
INT_4S mSec
 

Friends

istream & operator>> (istream &, Time &)
 

#include <time.hh>

Constructor & Destructor Documentation

wat::Time::Time ( INT_4S  sec = 0,
INT_4U  nsec = 0 
)
explicit

Definition at line 26 of file time.cc.

wat::Time::Time ( TString  date)
inline

Definition at line 72 of file time.hh.

wat::Time::Time ( Time time)

Definition at line 50 of file time.cc.

wat::Time::Time ( double  dtime)

Definition at line 38 of file time.cc.

Member Function Documentation

void wat::Time::Error ( char *  msg)
inlineprivate

Definition at line 231 of file time.hh.

TString wat::Time::GetDateString ( )

Definition at line 443 of file time.cc.

int wat::Time::GetDay ( )
inline

Definition at line 168 of file time.hh.

int wat::Time::GetDayOfYear ( )
inline

Definition at line 156 of file time.hh.

double wat::Time::GetDouble ( )

Definition at line 302 of file time.cc.

INT_4S wat::Time::GetGPS ( )
inline

Definition at line 107 of file time.hh.

int wat::Time::GetHour ( )
inline

Definition at line 172 of file time.hh.

double wat::Time::GetJulianDate ( )

Definition at line 505 of file time.cc.

int wat::Time::GetJulianDay ( )
inline

Definition at line 195 of file time.hh.

int wat::Time::GetLeapSecs ( )
inline

Definition at line 185 of file time.hh.

int wat::Time::GetMinute ( )
inline

Definition at line 176 of file time.hh.

double wat::Time::GetModJulianDate ( )

Definition at line 573 of file time.cc.

int wat::Time::GetModJulianDay ( )
inline

Definition at line 196 of file time.hh.

int wat::Time::GetMonth ( )
inline

Definition at line 164 of file time.hh.

INT_4U wat::Time::GetNSec ( )

Definition at line 636 of file time.cc.

INT_4S wat::Time::GetSec ( )

Definition at line 628 of file time.cc.

int wat::Time::GetSecond ( )
inline

Definition at line 180 of file time.hh.

int wat::Time::GetYear ( )
inline

Definition at line 160 of file time.hh.

int wat::Time::GpsToGpsLeaps ( int  gps)

Definition at line 592 of file time.cc.

int wat::Time::GpsToGpsLeaps ( )
inline

Definition at line 202 of file time.hh.

int wat::Time::GpsToTaiLeaps ( int  gps)
inline

Definition at line 205 of file time.hh.

int wat::Time::GpsToTaiLeaps ( )
inline

Definition at line 207 of file time.hh.

void wat::Time::GpsToUnix ( )
inline

Definition at line 219 of file time.hh.

int wat::Time::GpsToUnixTime ( )
inline

Definition at line 223 of file time.hh.

bool wat::Time::operator!= ( Time time)

Definition at line 190 of file time.cc.

Time & wat::Time::operator*= ( double &  d)

Definition at line 115 of file time.cc.

Time & wat::Time::operator+= ( Time time)

Definition at line 80 of file time.cc.

Time & wat::Time::operator-= ( Time time)

Definition at line 97 of file time.cc.

double wat::Time::operator/ ( Time time)

Definition at line 151 of file time.cc.

Time & wat::Time::operator/= ( double &  d)

Definition at line 137 of file time.cc.

bool wat::Time::operator< ( Time time)

Definition at line 199 of file time.cc.

bool wat::Time::operator<= ( Time time)

Definition at line 172 of file time.cc.

Time & wat::Time::operator= ( Time time)

Definition at line 65 of file time.cc.

bool wat::Time::operator== ( Time time)

Definition at line 163 of file time.cc.

bool wat::Time::operator> ( Time time)

Definition at line 213 of file time.cc.

bool wat::Time::operator>= ( Time time)

Definition at line 181 of file time.cc.

void wat::Time::Print ( )

Definition at line 493 of file time.cc.

void wat::Time::PrintLeapSecs ( )
inline

Definition at line 186 of file time.hh.

void wat::Time::SetDate ( int  ss,
int  mm,
int  hh,
int  DD,
int  MM,
int  YY,
int  nsec = 0 
)

Definition at line 402 of file time.cc.

void wat::Time::SetDateString ( TString  date)

Definition at line 313 of file time.cc.

void wat::Time::SetDay ( unsigned int  day)
inline

Definition at line 141 of file time.hh.

void wat::Time::SetDouble ( double  dt)

Definition at line 293 of file time.cc.

void wat::Time::SetHour ( unsigned int  hour)
inline

Definition at line 144 of file time.hh.

void wat::Time::SetMinute ( unsigned int  min)
inline

Definition at line 147 of file time.hh.

void wat::Time::SetMonth ( unsigned int  month)
inline

Definition at line 138 of file time.hh.

INT_4U wat::Time::SetNSec ( INT_4U  nsec)
inline

Definition at line 121 of file time.hh.

INT_4S wat::Time::SetSec ( INT_4S  s)
inline

Definition at line 118 of file time.hh.

void wat::Time::SetSecond ( unsigned int  sec)
inline

Definition at line 150 of file time.hh.

void wat::Time::SetString ( char *  date,
int  nsec = 0 
)

Definition at line 355 of file time.cc.

void wat::Time::SetYear ( unsigned int  year)
inline

Definition at line 135 of file time.hh.

void wat::Time::UnixToGps ( )
inline

Definition at line 213 of file time.hh.

int wat::Time::UnixToGpsLeaps ( int  unix_time)

Definition at line 599 of file time.cc.

int wat::Time::UnixToGpsLeaps ( )
inline

Definition at line 203 of file time.hh.

int wat::Time::UnixToTaiLeaps ( int  unix_time)
inline

Definition at line 206 of file time.hh.

int wat::Time::UnixToTaiLeaps ( )
inline

Definition at line 208 of file time.hh.

Friends And Related Function Documentation

istream& operator>> ( istream &  ,
Time  
)
friend

Member Data Documentation

INT_4U wat::Time::mNSec
private

Definition at line 234 of file time.hh.

INT_4S wat::Time::mSec
private

Definition at line 233 of file time.hh.


The documentation for this class was generated from the following files: