📄 log.h
字号:
/******************************************************************************
*******************************************************************************
** **
** Copyright (c) 2006 Videon Central, Inc. **
** All rights reserved. **
** **
** The computer program contained herein contains proprietary information **
** which is the property of Videon Central, Inc. The program may be used **
** and/or copied only with the written permission of Videon Central, Inc. **
** or in accordance with the terms and conditions stipulated in the **
** agreement/contract under which the programs have been supplied. **
** **
*******************************************************************************
******************************************************************************/
/**
* @file log.h
*
* $Revision: 1.5 $
*
* Log class
*
*/
#ifndef __LOG_H
#define __LOG_H
#include <stdio.h>
#include "mutex.h"
#include "reference_counter.h"
#include "error.h"
class Log : public ReferenceCounter
{
private:
Mutex m_mutex;
FILE* m_outputFile;
const char* m_outputFilename;
uint32 m_maxLogEntryLength;
uint32 m_logEntryArraySize;
uint32 m_logEntryArrayCapacity;
char** m_logEntryArray;
virtual VDVD_ERROR Construct ( void );
virtual VDVD_ERROR Destruct ( void );
static int Compare ( const void* entry1, const void* entry2 );
public:
Log ( void );
virtual VDVD_ERROR Create ( const char* outputFilename );
virtual VDVD_ERROR Destroy ( void );
const char* Read ( uint32 index );
virtual VDVD_ERROR Write ( const char* entry );
uint32 GetNumberOfEntries ( void );
uint32 GetMaxEntryLength ( void );
VDVD_ERROR Clear ( void );
VDVD_ERROR Sort ( void );
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -