Grail (C++)  1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
grail::FileSink Class Reference

The FileSink class - sink writing messages to file. More...

#include <FileSink.hh>

Inheritance diagram for grail::FileSink:
Collaboration diagram for grail::FileSink:

Public Member Functions

 FileSink (const std::string &filename, bool isSynchronized=false)
 FileSink. More...
 
- Public Member Functions inherited from grail::Sink
 Sink (bool isSynchronized=false)
 
 Sink (const Sink &other)=delete
 
 Sink (Sink &&other)=delete
 
Sinkoperator= (const Sink &other)=delete
 
Sinkoperator= (Sink &&other)=delete
 
void Sync (const std::string &message)
 

Protected Member Functions

virtual void Log (const std::string &message) override
 Log - override this method to define how the messege should be logged. More...
 

Detailed Description

The FileSink class - sink writing messages to file.

Constructor & Destructor Documentation

◆ FileSink()

grail::FileSink::FileSink ( const std::string &  filename,
bool  isSynchronized = false 
)

FileSink.

Parameters
filename- path to logger file, if it does not exist new file will be created
isSynchronized

Member Function Documentation

◆ Log()

void grail::FileSink::Log ( const std::string &  message)
overrideprotectedvirtual

Log - override this method to define how the messege should be logged.

Parameters
message

Implements grail::Sink.


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