Public Member Functions | |
| Logfile () | |
| ~Logfile () | |
| ostream & | operator() (bool timestamp=false) |
Static Public Member Functions | |
| void | setFname (const Pathname &fname_r) |
Private Member Functions | |
| Logfile (const Logfile &) | |
| Logfile & | operator= (const Logfile &) |
Static Private Member Functions | |
| void | openLog () |
| void | closeLog () |
| void | refUp () |
| void | refDown () |
Static Private Attributes | |
| ofstream | _log |
| unsigned | _refcnt = 0 |
| Pathname | _fname |
Usage: some methothd () { Logfile progresslog; ... progresslog() << "some message" << endl; ... }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.6