(C++)  1.0
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 (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 (std::string message)
 

Protected Member Functions

void Log (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

grail::FileSink::FileSink ( 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

void grail::FileSink::Log ( 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: