TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | Private Attributes | List of all members
QSILog Class Reference

#include <QSILog.h>

Collaboration diagram for QSILog:
Collaboration graph

Public Member Functions

 QSILog (const char *filename, const char *regkey, const char *prefixName)
 
 ~QSILog (void)
 
bool Open (void)
 
void TestForLogging (void)
 
int LogLevel (void)
 
bool LoggingEnabled (void)
 
bool LoggingEnabled (int iLevel)
 
bool IsLogFileOpen (void)
 
void Write (int iReqLevel)
 
void WriteBuffer (int iReqLevel, void *buff, unsigned int bufsize, unsigned int len, unsigned int maxshown)
 
void Write (int iReqLevel, const char *msg,...)
 
void Close (void)
 

Public Attributes

char m_Message [MSGSIZE]
 

Private Attributes

char m_tszFilename [MAX_PATH+1]
 
char m_tszValueName [MSGSIZE]
 
char m_tszPreFixName [MSGSIZE]
 
FILE * m_pfLogFile
 
bool m_bLogging
 
int m_logLevel
 
timeval m_tvLastTick
 
char szPath [MAX_PATH+1]
 
char * pTmp
 
uid_t me
 
struct passwd * my_passwd
 

Constructor & Destructor Documentation

◆ QSILog()

QSILog::QSILog ( const char *  filename,
const char *  regkey,
const char *  prefixName 
)

◆ ~QSILog()

QSILog::~QSILog ( void  )

Member Function Documentation

◆ Close()

void QSILog::Close ( void  )

◆ IsLogFileOpen()

bool QSILog::IsLogFileOpen ( void  )

◆ LoggingEnabled() [1/2]

bool QSILog::LoggingEnabled ( void  )

◆ LoggingEnabled() [2/2]

bool QSILog::LoggingEnabled ( int  iLevel)

◆ LogLevel()

int QSILog::LogLevel ( void  )

◆ Open()

bool QSILog::Open ( void  )

◆ TestForLogging()

void QSILog::TestForLogging ( void  )

◆ Write() [1/2]

void QSILog::Write ( int  iReqLevel)

◆ Write() [2/2]

void QSILog::Write ( int  iReqLevel,
const char *  msg,
  ... 
)

◆ WriteBuffer()

void QSILog::WriteBuffer ( int  iReqLevel,
void *  buff,
unsigned int  bufsize,
unsigned int  len,
unsigned int  maxshown 
)

Member Data Documentation

◆ m_bLogging

bool QSILog::m_bLogging
private

◆ m_logLevel

int QSILog::m_logLevel
private

◆ m_Message

char QSILog::m_Message[MSGSIZE]

◆ m_pfLogFile

FILE* QSILog::m_pfLogFile
private

◆ m_tszFilename

char QSILog::m_tszFilename[MAX_PATH+1]
private

◆ m_tszPreFixName

char QSILog::m_tszPreFixName[MSGSIZE]
private

◆ m_tszValueName

char QSILog::m_tszValueName[MSGSIZE]
private

◆ m_tvLastTick

timeval QSILog::m_tvLastTick
private

◆ me

uid_t QSILog::me
private

◆ my_passwd

struct passwd* QSILog::my_passwd
private

◆ pTmp

char* QSILog::pTmp
private

◆ szPath

char QSILog::szPath[MAX_PATH+1]
private

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