CARMA C++
ScopedLogNdc.h
1 #ifndef CARMA_UTIL_SCOPED_LOG_NDC_H
2 #define CARMA_UTIL_SCOPED_LOG_NDC_H
3 
4 
5 #include <string>
6 
7 
8 namespace carma {
9 namespace util {
10 
11 
12 class ScopedLogNdc {
13  public:
14  explicit ScopedLogNdc( const char * s );
15 
16  explicit ScopedLogNdc( const ::std::string & s );
17 
18  ScopedLogNdc( const char * s,
19  const char * prefix,
20  const char * suffix );
21 
22  ScopedLogNdc( const ::std::string & s,
23  const ::std::string & prefix,
24  const ::std::string & suffix );
25 
26  /* virtual */ ~ScopedLogNdc( );
27 
28  private:
29  // No copying
30  ScopedLogNdc( const ScopedLogNdc & rhs );
31  ScopedLogNdc & operator=( const ScopedLogNdc & rhs );
32 };
33 
34 
35 } // namespace carma::util
36 } // namespace carma
37 
38 
39 #endif