Base::TimeInfo Class Reference

BaseClass class and root of the type system. More...

#include <TimeInfo.h>

List of all members.

Public Member Functions

unsigned short getMiliseconds (void) const
uint64_t getSeconds (void) const
bool isNull () const
bool operator!= (const TimeInfo &time) const
bool operator< (const TimeInfo &time) const
bool operator<= (const TimeInfo &time) const
void operator= (const TimeInfo &time)
bool operator== (const TimeInfo &time) const
bool operator> (const TimeInfo &time) const
bool operator>= (const TimeInfo &time) const
void setCurrent (void)
 sets the object to the actual system time
void setTime_t (uint64_t seconds)
 TimeInfo ()
 Construction.
virtual ~TimeInfo ()
 Destruction.

Static Public Member Functions

static const char * currentDateTimeString ()
static std::string diffTime (const TimeInfo &timeStart, const TimeInfo &timeEnd)
static float diffTimeF (const TimeInfo &timeStart, const TimeInfo &timeEnd)
static TimeInfo null ()

Detailed Description

BaseClass class and root of the type system.

Definition at line 41 of file TimeInfo.h.


Constructor & Destructor Documentation

TimeInfo::TimeInfo (  ) 

Construction.

A constructor.

A more elaborate description of the constructor.

Definition at line 40 of file TimeInfo.cpp.

References setCurrent().

TimeInfo::~TimeInfo (  )  [virtual]

Destruction.

A destructor.

A more elaborate description of the destructor.

Definition at line 49 of file TimeInfo.cpp.


Member Function Documentation

const char * TimeInfo::currentDateTimeString (  )  [static]

Definition at line 71 of file TimeInfo.cpp.

Referenced by App::Document::Document(), and App::Document::save().

std::string TimeInfo::diffTime ( const TimeInfo timeStart,
const TimeInfo timeEnd 
) [static]

Definition at line 83 of file TimeInfo.cpp.

References diffTimeF().

float TimeInfo::diffTimeF ( const TimeInfo timeStart,
const TimeInfo timeEnd 
) [static]
unsigned short Base::TimeInfo::getMiliseconds ( void   )  const [inline]

Definition at line 86 of file TimeInfo.h.

Referenced by diffTimeF().

uint64_t Base::TimeInfo::getSeconds ( void   )  const [inline]

Definition at line 81 of file TimeInfo.h.

Referenced by diffTimeF().

bool TimeInfo::isNull ( void   )  const

Definition at line 106 of file TimeInfo.cpp.

References null().

TimeInfo TimeInfo::null (  )  [static]

Definition at line 98 of file TimeInfo.cpp.

Referenced by isNull(), Base::FileInfo::lastModified(), and Base::FileInfo::lastRead().

bool Base::TimeInfo::operator!= ( const TimeInfo time  )  const [inline]

Definition at line 92 of file TimeInfo.h.

bool Base::TimeInfo::operator< ( const TimeInfo time  )  const [inline]

Definition at line 110 of file TimeInfo.h.

bool Base::TimeInfo::operator<= ( const TimeInfo time  )  const [inline]

Definition at line 119 of file TimeInfo.h.

void Base::TimeInfo::operator= ( const TimeInfo time  )  [inline]

Definition at line 98 of file TimeInfo.h.

bool Base::TimeInfo::operator== ( const TimeInfo time  )  const [inline]

Definition at line 104 of file TimeInfo.h.

bool Base::TimeInfo::operator> ( const TimeInfo time  )  const [inline]

Definition at line 137 of file TimeInfo.h.

bool Base::TimeInfo::operator>= ( const TimeInfo time  )  const [inline]

Definition at line 128 of file TimeInfo.h.

void TimeInfo::setCurrent ( void   ) 

sets the object to the actual system time

Definition at line 57 of file TimeInfo.cpp.

Referenced by TimeInfo().

void TimeInfo::setTime_t ( uint64_t  seconds  ) 

Definition at line 66 of file TimeInfo.cpp.

Referenced by Base::FileInfo::lastModified(), and Base::FileInfo::lastRead().


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

Generated on Wed Nov 23 19:01:48 2011 for FreeCAD by  doxygen 1.6.1