DebConfig.hh 759 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// (C) Copyright 2016 by Autodesk, Inc.

#ifndef BASE_DEBCONFIG_HH_INCLUDED
#define BASE_DEBCONFIG_HH_INCLUDED
#ifdef DEB_ON

#include <string>
#include <vector>

namespace Debug {

/*! 
Access the global, per-process, configuration options of the Debug system.
*/
class Config
{
public:
  static const Config& query(); 

public:
  //! Get the level for this filename and function
  int level(const char* const _flnm, const char* const _fnct) const;

private:
  class Impl;
  Impl* impl_;

private:
  //! Private constructor
  Config();

  //! Private destructor
  ~Config();

  //! Disable copy
  Config(const Config&);

  //! Disable assignment
  Config& operator=(const Config&);
}; 

};//namespace Debug

#endif//DEB_ON
#endif//BASE_DEBCONFIG_HH_INCLUDED