HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UniversalLogEntry Class Reference

Simple object to hold the data associated with a single log entry event. More...

#include <UT_UniversalLogEntry.h>

Public Member Functions

 UT_UniversalLogEntry (const UT_StringHolder &source_name=UT_StringHolder::theEmptyString, const UT_StringHolder &message=UT_StringHolder::theEmptyString, const UT_StringHolder &source_context=UT_StringHolder::theEmptyString, UT_ErrorSeverity severity=UT_ERROR_NONE, int verbosity=0, const UT_SourceLocation &source_code_location=UT_SourceLocation(), UT_UniversalLogExternalInfoHandle external_info=UT_UniversalLogExternalInfoHandle())
 
 UT_UniversalLogEntry (const UT_ErrorCode &ec, const UT_StringHolder &what, const UT_StringHolder &source_context=UT_StringHolder::theEmptyString, UT_ErrorSeverity severity=UT_ERROR_ABORT, int verbosity=0, const UT_SourceLocation &source_location=UT_SourceLocation(), UT_UniversalLogExternalInfoHandle external_info=UT_UniversalLogExternalInfoHandle())
 
bool operator< (const UT_UniversalLogEntry &other) const
 The natural order of log messages is chronological. More...
 
exint getMemoryUsage () const
 
SYS_HashType hash () const
 

Static Public Member Functions

static bool save (UT_JSONWriter &w, const UT_Array< UT_UniversalLogEntry > &log_entries)
 
static bool load (UT_JSONParser &p, UT_Array< UT_UniversalLogEntry > &log_entries)
 

Public Attributes

UT_StringHolder mySourceName
 
UT_StringHolder myMessage
 
UT_StringHolder mySourceContext
 
UT_SourceLocation mySourceCodeLocation
 
UT_ErrorSeverity myErrorSeverity
 
int myVerbosity
 
fpreal myTime
 
int myThreadId
 
UT_UniversalLogExternalInfoHandle myExternalInfo
 

Static Public Attributes

static fpreal theStartTime
 
static fpreal theStartTimeSinceEpoch
 

Detailed Description

Simple object to hold the data associated with a single log entry event.

Definition at line 58 of file UT_UniversalLogEntry.h.

Constructor & Destructor Documentation

UT_UniversalLogEntry::UT_UniversalLogEntry ( const UT_StringHolder source_name = UT_StringHolder::theEmptyString,
const UT_StringHolder message = UT_StringHolder::theEmptyString,
const UT_StringHolder source_context = UT_StringHolder::theEmptyString,
UT_ErrorSeverity  severity = UT_ERROR_NONE,
int  verbosity = 0,
const UT_SourceLocation source_code_location = UT_SourceLocation(),
UT_UniversalLogExternalInfoHandle  external_info = UT_UniversalLogExternalInfoHandle() 
)
inline

Definition at line 61 of file UT_UniversalLogEntry.h.

UT_UniversalLogEntry::UT_UniversalLogEntry ( const UT_ErrorCode ec,
const UT_StringHolder what,
const UT_StringHolder source_context = UT_StringHolder::theEmptyString,
UT_ErrorSeverity  severity = UT_ERROR_ABORT,
int  verbosity = 0,
const UT_SourceLocation source_location = UT_SourceLocation(),
UT_UniversalLogExternalInfoHandle  external_info = UT_UniversalLogExternalInfoHandle() 
)
inline

Definition at line 81 of file UT_UniversalLogEntry.h.

Member Function Documentation

exint UT_UniversalLogEntry::getMemoryUsage ( ) const
inline

Definition at line 109 of file UT_UniversalLogEntry.h.

SYS_HashType UT_UniversalLogEntry::hash ( void  ) const
inline

Definition at line 118 of file UT_UniversalLogEntry.h.

static bool UT_UniversalLogEntry::load ( UT_JSONParser p,
UT_Array< UT_UniversalLogEntry > &  log_entries 
)
static
bool UT_UniversalLogEntry::operator< ( const UT_UniversalLogEntry other) const
inline

The natural order of log messages is chronological.

Definition at line 104 of file UT_UniversalLogEntry.h.

static bool UT_UniversalLogEntry::save ( UT_JSONWriter w,
const UT_Array< UT_UniversalLogEntry > &  log_entries 
)
static

Member Data Documentation

UT_ErrorSeverity UT_UniversalLogEntry::myErrorSeverity

Definition at line 146 of file UT_UniversalLogEntry.h.

UT_UniversalLogExternalInfoHandle UT_UniversalLogEntry::myExternalInfo

Definition at line 150 of file UT_UniversalLogEntry.h.

UT_StringHolder UT_UniversalLogEntry::myMessage

Definition at line 143 of file UT_UniversalLogEntry.h.

UT_SourceLocation UT_UniversalLogEntry::mySourceCodeLocation

Definition at line 145 of file UT_UniversalLogEntry.h.

UT_StringHolder UT_UniversalLogEntry::mySourceContext

Definition at line 144 of file UT_UniversalLogEntry.h.

UT_StringHolder UT_UniversalLogEntry::mySourceName

Definition at line 142 of file UT_UniversalLogEntry.h.

int UT_UniversalLogEntry::myThreadId

Definition at line 149 of file UT_UniversalLogEntry.h.

fpreal UT_UniversalLogEntry::myTime

Definition at line 148 of file UT_UniversalLogEntry.h.

int UT_UniversalLogEntry::myVerbosity

Definition at line 147 of file UT_UniversalLogEntry.h.

fpreal UT_UniversalLogEntry::theStartTime
static

Definition at line 151 of file UT_UniversalLogEntry.h.

fpreal UT_UniversalLogEntry::theStartTimeSinceEpoch
static

Definition at line 152 of file UT_UniversalLogEntry.h.


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