LibreOffice Module onlineupdate (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
UpdateLog Class Reference

#include <updatelogging.h>

Public Member Functions

void Init (NS_tchar *sourcePath, const NS_tchar *fileName, const NS_tchar *alternateFileName, bool append)
 
void Finish ()
 
void Flush ()
 
void Printf (const char *fmt,...)
 
void WarnPrintf (const char *fmt,...)
 
 ~UpdateLog ()
 

Static Public Member Functions

static UpdateLogGetPrimaryLog ()
 

Protected Member Functions

 UpdateLog ()
 

Protected Attributes

FILElogFP
 
NS_tcharsourcePath
 

Detailed Description

Definition at line 11 of file updatelogging.h.

Constructor & Destructor Documentation

◆ ~UpdateLog()

UpdateLog::~UpdateLog ( )
inline

Definition at line 27 of file updatelogging.h.

References Finish().

◆ UpdateLog()

UpdateLog::UpdateLog ( )
protected

Definition at line 17 of file updatelogging.cxx.

Member Function Documentation

◆ Finish()

void UpdateLog::Finish ( )

Definition at line 45 of file updatelogging.cxx.

References logFP.

Referenced by ~UpdateLog().

◆ Flush()

void UpdateLog::Flush ( void  )

Definition at line 54 of file updatelogging.cxx.

References logFP.

◆ GetPrimaryLog()

static UpdateLog & UpdateLog::GetPrimaryLog ( )
inlinestatic

Definition at line 14 of file updatelogging.h.

◆ Init()

void UpdateLog::Init ( NS_tchar sourcePath,
const NS_tchar fileName,
const NS_tchar alternateFileName,
bool  append 
)

Definition at line 23 of file updatelogging.cxx.

References logFP, MAXPATHLEN, NS_T, NS_taccess, NS_tfopen, NS_tsnprintf, and sourcePath.

◆ Printf()

void UpdateLog::Printf ( const char *  fmt,
  ... 
)

Definition at line 62 of file updatelogging.cxx.

References logFP.

◆ WarnPrintf()

void UpdateLog::WarnPrintf ( const char *  fmt,
  ... 
)

Definition at line 74 of file updatelogging.cxx.

References logFP.

Member Data Documentation

◆ logFP

FILE* UpdateLog::logFP
protected

Definition at line 34 of file updatelogging.h.

Referenced by Finish(), Flush(), Init(), Printf(), and WarnPrintf().

◆ sourcePath

NS_tchar* UpdateLog::sourcePath
protected

Definition at line 35 of file updatelogging.h.

Referenced by Init().


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