20#ifndef included_Retro_RlogFile
21#define included_Retro_RlogFile 1
37 explicit RlogFile(std::ostream* os,
const std::string& name =
"");
46 void UseStream(std::ostream* os,
const std::string& name =
"");
47 const std::string&
Name()
const;
49 void Write(
const std::string& str,
char tag = 0);
51 void Dump(std::ostream& os,
int ind=0,
const char* text=0)
const;
std::ostream * fpExtStream
pointer to external stream
int fTagYear
year of last time tag
RlogFile & operator<<(const RlogMsg &lmsg)
FIXME_docs.
int fTagMonth
month of last time tag
bool IsNew() const
FIXME_docs.
std::ofstream fIntStream
internal stream
void UseStream(std::ostream *os, const std::string &name="")
FIXME_docs.
int fTagDay
day of last time tag
std::string fName
log file name
bool Open(std::string name, RerrMsg &emsg)
FIXME_docs.
RlogFile(const RlogFile &)=delete
void ClearTime()
FIXME_docs.
bool fNew
true if never opened or used
const std::string & Name() const
FIXME_docs.
std::ostream & Stream()
FIXME_docs.
std::mutex fMutex
mutex to lock file
RlogFile()
Default constructor.
void Dump(std::ostream &os, int ind=0, const char *text=0) const
FIXME_docs.
std::string BuildinStreamName(std::ostream *os, const std::string &str)
FIXME_docs.
void Write(const std::string &str, char tag=0)
FIXME_docs.
RlogFile & operator=(const RlogFile &)=delete
Declaration of class ReventLoop.