Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / DevGuideExamples / SmartProxies / Logger_i.h
blobcacf61448fc824b9960e3361f0b826d7e7c436dd
1 #ifndef LOGGERI_H_
2 #define LOGGERI_H_
4 #include "LoggerS.h"
5 #include "ace/String_Base.h"
6 #include <fstream>
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 #pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 class Logger_i : public virtual POA_Logger
14 public:
15 Logger_i ();
16 virtual ~Logger_i ();
17 private:
18 ofstream log_file; // Output file stream to which messages are logged.
19 time_t log_time; // Needed for creating a time stamp.
20 ACE_TString log_time_string; // The time stamp string.
22 virtual CORBA::Boolean log_message (const char * message);
24 #endif /* LOGGERI_H_ */