Pin
Public Member Functions | List of all members
LOGFILE Class Referenceabstract

Public Member Functions

virtual VOID Open (const CHAR *name, BOOL append)=0
 
virtual BOOL IsOpen () const =0
 
virtual VOID Close ()=0
 
virtual VOID Write (const CHAR *message, size_t length)=0
 
VOID Write (const std::string &message)
 
virtual VOID WriteAtPosition (const CHAR *message, size_t length, size_t offset)=0
 

Detailed Description

This module contains routines and classes for the handling error messages

A class for Pin log file

Member Function Documentation

◆ Open()

virtual VOID LOGFILE::Open ( const CHAR *  name,
BOOL  append 
)
pure virtual

Create or open the specified file. If the file does not exist, create the new file.

Parameters
[in]nameName of the file.
[in]appendIf TRUE, new log messages are appended to the file if it already exists. If FALSE, the new file file overwrites any existing file.
Note
MESSAGE_TYPE::MessageLock is locked when calling this API, therefore MESSAGE_TYPE::MessageInternal() should not be called from this function.

◆ Write()

virtual VOID LOGFILE::Write ( const CHAR *  message,
size_t  length 
)
pure virtual

Write the specified message to the file.


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