Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
Journal::anonymous_namespace{Journal.cpp}::JournalLogger Class Referencefinal

Public Member Functions

 JournalLogger ()
 
void WriteString (std::string_view str)
 
void FinalizeMessge ()
 

Private Attributes

wxFFile mLogFile
 

Detailed Description

Definition at line 46 of file Journal.cpp.

Constructor & Destructor Documentation

◆ JournalLogger()

Journal::anonymous_namespace{Journal.cpp}::JournalLogger::JournalLogger ( )
inline

Definition at line 49 of file Journal.cpp.

50 {
51 wxFileName logFile(FileNames::DataDir(), L"journallog.txt");
52 mLogFile.Open(logFile.GetFullPath(wxPATH_NATIVE), L"w");
53 }
FILES_API FilePath DataDir()
Audacity user data directory.

References FileNames::DataDir().

Here is the call graph for this function:

Member Function Documentation

◆ FinalizeMessge()

void Journal::anonymous_namespace{Journal.cpp}::JournalLogger::FinalizeMessge ( )
inline

Definition at line 59 of file Journal.cpp.

60 {
61 mLogFile.Write("\n");
62 mLogFile.Flush();
63 }

◆ WriteString()

void Journal::anonymous_namespace{Journal.cpp}::JournalLogger::WriteString ( std::string_view  str)
inline

Definition at line 54 of file Journal.cpp.

55 {
56 mLogFile.Write(str.data(), str.size());
57 }
#define str(a)

References str.

Member Data Documentation

◆ mLogFile

wxFFile Journal::anonymous_namespace{Journal.cpp}::JournalLogger::mLogFile
private

Definition at line 66 of file Journal.cpp.


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