unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

RarTime Class Reference

#include <timefn.hpp>

Public Member Functions

 RarTime ()
 
bool operator== (RarTime &rt)
 
bool operator!= (RarTime &rt)
 
bool operator< (RarTime &rt)
 
bool operator<= (RarTime &rt)
 
bool operator> (RarTime &rt)
 
bool operator>= (RarTime &rt)
 
void GetLocal (RarLocalTime *lt)
 
void SetLocal (RarLocalTime *lt)
 
uint64 GetWin ()
 
void SetWin (uint64 WinTime)
 
time_t GetUnix ()
 
void SetUnix (time_t ut)
 
uint64 GetUnixNS ()
 
void SetUnixNS (uint64 ns)
 
uint GetDos ()
 
void SetDos (uint DosTime)
 
void GetText (wchar *DateStr, size_t MaxSize, bool FullMS)
 
void SetIsoText (const wchar *TimeText)
 
void SetAgeText (const wchar *TimeText)
 
void SetCurrentTime ()
 
void Reset ()
 
bool IsSet ()
 
void Adjust (int64 ns)
 

Static Public Attributes

static const uint REMINDER_PRECISION = TICKS_PER_SECOND
 

Private Attributes

uint64 itime
 

Static Private Attributes

static const uint TICKS_PER_SECOND = 1000000000
 

Detailed Description

Definition at line 18 of file timefn.hpp.

Constructor & Destructor Documentation

◆ RarTime()

RarTime::RarTime ( )
inline

Definition at line 31 of file timefn.hpp.

References Reset().

Member Function Documentation

◆ Adjust()

void RarTime::Adjust ( int64  ns)

Definition at line 322 of file timefn.cpp.

References itime, and TICKS_PER_SECOND.

Referenced by Archive::ProcessExtra50().

◆ GetDos()

◆ GetLocal()

◆ GetText()

void RarTime::GetText ( wchar DateStr,
size_t  MaxSize,
bool  FullMS 
)

◆ GetUnix()

time_t RarTime::GetUnix ( )

Definition at line 164 of file timefn.cpp.

References GetUnixNS().

Referenced by GetLocal(), File::SetCloseFileTimeByName(), and UnixSymlink().

◆ GetUnixNS()

uint64 RarTime::GetUnixNS ( )

Definition at line 184 of file timefn.cpp.

References INT32TO64, itime, and TICKS_PER_SECOND.

Referenced by GetUnix(), File::SetCloseFileTimeByName(), and UnixSymlink().

◆ GetWin()

uint64 RarTime::GetWin ( )

Definition at line 151 of file timefn.cpp.

References itime, and TICKS_PER_SECOND.

Referenced by RARReadHeaderEx(), and TimeRandomize().

◆ IsSet()

bool RarTime::IsSet ( )
inline

◆ operator!=()

bool RarTime::operator!= ( RarTime rt)
inline

Definition at line 33 of file timefn.hpp.

References itime.

◆ operator<()

bool RarTime::operator< ( RarTime rt)
inline

Definition at line 34 of file timefn.hpp.

References itime.

◆ operator<=()

bool RarTime::operator<= ( RarTime rt)
inline

Definition at line 35 of file timefn.hpp.

References itime.

◆ operator==()

bool RarTime::operator== ( RarTime rt)
inline

Definition at line 32 of file timefn.hpp.

References itime.

◆ operator>()

bool RarTime::operator> ( RarTime rt)
inline

Definition at line 36 of file timefn.hpp.

References itime.

◆ operator>=()

bool RarTime::operator>= ( RarTime rt)
inline

Definition at line 37 of file timefn.hpp.

References itime.

◆ Reset()

void RarTime::Reset ( )
inline

Definition at line 57 of file timefn.hpp.

References itime.

Referenced by Archive::Archive(), RarTime(), FileHeader::Reset(), and SetLocal().

◆ SetAgeText()

void RarTime::SetAgeText ( const wchar TimeText)

Definition at line 271 of file timefn.cpp.

References Ch, etoupperw(), IsDigit(), itime, SetCurrentTime(), and TICKS_PER_SECOND.

Referenced by CommandData::SetTimeFilters().

◆ SetCurrentTime()

void RarTime::SetCurrentTime ( )

Definition at line 305 of file timefn.cpp.

References SetUnix().

Referenced by CmdExtract::ExtractArchiveInit(), GenArcName(), SetAgeText(), and TimeRandomize().

◆ SetDos()

◆ SetIsoText()

◆ SetLocal()

◆ SetUnix()

void RarTime::SetUnix ( time_t  ut)

◆ SetUnixNS()

void RarTime::SetUnixNS ( uint64  ns)

Definition at line 193 of file timefn.cpp.

References INT32TO64, itime, and TICKS_PER_SECOND.

Referenced by FindFile::FastFind(), and SetUnix().

◆ SetWin()

void RarTime::SetWin ( uint64  WinTime)

Definition at line 158 of file timefn.cpp.

References itime, and TICKS_PER_SECOND.

Referenced by Archive::ProcessExtra50().

Member Data Documentation

◆ itime

◆ REMINDER_PRECISION

const uint RarTime::REMINDER_PRECISION = TICKS_PER_SECOND
static

Definition at line 29 of file timefn.hpp.

Referenced by Archive::ReadHeader15().

◆ TICKS_PER_SECOND

const uint RarTime::TICKS_PER_SECOND = 1000000000
staticprivate

Definition at line 21 of file timefn.hpp.

Referenced by Adjust(), GetLocal(), GetText(), GetUnixNS(), GetWin(), SetAgeText(), SetUnixNS(), and SetWin().


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