CAD Exchanger SDK
cadex::Base_LoggerFileAppender Class Reference

Provides logging messages in the file. More...

Inheritance diagram for cadex::Base_LoggerFileAppender:
cadex::Base_LoggerAppender

Public Member Functions

 Base_LoggerFileAppender (const char *theFileName)
 Constructor.
 
 Base_LoggerFileAppender (const wchar_t *theFileName)
 Constructor.
 
bool IsValid () const
 Returns true if the output file is in a valid state. More...
 
virtual void Append (CharPointerType theMessage)
 Outputs a message into the file.
 
- Public Member Functions inherited from cadex::Base_LoggerAppender
virtual ~Base_LoggerAppender ()
 Destructor.
 
Base_LoggerAppenderoperator= (const Base_LoggerAppender &theAppender)
 Assignment operator.
 
const std::shared_ptr< internal::Base_LoggerAppenderImpl > & Impl () const
 Returns internal implementation object.
 

Additional Inherited Members

- Public Types inherited from cadex::Base_LoggerAppender
typedef UTF16 CharType
 Defines a character type of user-visible strings.
 
typedef const UTF16CharPointerType
 Defines a type of the pointer to the character type.
 
- Protected Member Functions inherited from cadex::Base_LoggerAppender
 Base_LoggerAppender ()
 Constructor.
 
 Base_LoggerAppender (const std::shared_ptr< internal::Base_LoggerAppenderImpl > &theImpl)
 Constructor.
 
 Base_LoggerAppender (const Base_LoggerAppender &theAppender)
 Constructor.
 
void Construct (const std::shared_ptr< internal::Base_LoggerAppenderImpl > &theImpl)
 Delayed constructor.
 
Base_LoggerAppenderThis ()
 Returns a pointer to this object.
 

Detailed Description

Provides logging messages in the file.

The file name can be specified with ascii or Unicode symbols.

IsValid() returns true if the file has been successfully opened and can be used for output.

Examples:
misc/logging/main.cxx.

Member Function Documentation

◆ IsValid()

bool cadex::Base_LoggerFileAppender::IsValid ( ) const

Returns true if the output file is in a valid state.

Returns false if the file could not be opened or some other error occured.