AnCH Framework  0.1
Another C++ Hack Framework
loggerConfiguration.hpp
1 /*
2  ANCH Framework: ANother C++ Hack is a C++ framework based on C++11 standard
3  Copyright (C) 2012 Vincent Lachenal
4 
5  This file is part of ANCH Framework.
6 
7  ANCH Framework is free software: you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  ANCH Framework is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with ANCH Framework. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef _ANCH_LOGGER_LOGGER_CONFIGURATION_H_
21 #define _ANCH_LOGGER_LOGGER_CONFIGURATION_H_
22 
23 #include <iostream>
24 #include <vector>
25 
26 #include "logger/levels.hpp"
27 #include "logger/writer.hpp"
28 
29 namespace anch {
30  namespace logger {
31 
38  private:
40  std::string _category;
41 
43  anch::logger::Level _level;
44 
46  std::vector<anch::logger::Writer*> _writers;
47 
48  public:
49  // Constructor +
57  LoggerConfiguration(const std::string& category,
58  const anch::logger::Level& level,
59  const std::vector<anch::logger::Writer*>& writers);
60  // Constructor -
61 
62  // Destructor +
67  // Destructor -
68 
69  public:
70  // Accessors +
76  inline const std::string& getCategory() const {
77  return _category;
78  };
79 
85  inline const anch::logger::Level& getLevel() const {
86  return _level;
87  };
88 
94  inline const std::vector<anch::logger::Writer*>& getWriters() const {
95  return _writers;
96  };
97  // Accessors -
98 
99  };
100 
101  }
102 }
103 
104 #endif // _ANCH_LOGGER_LOGGER_CONFIGURATION_H_
AnCH framework base namespace.
Definition: base64.hpp:28
Definition: loggerConfiguration.hpp:37
LoggerConfiguration(const std::string &category, const anch::logger::Level &level, const std::vector< anch::logger::Writer * > &writers)
Definition: loggerConfiguration.cpp:37
const anch::logger::Level & getLevel() const
Definition: loggerConfiguration.hpp:85
const std::vector< anch::logger::Writer * > & getWriters() const
Definition: loggerConfiguration.hpp:94
Level
Definition: levels.hpp:34
const std::string & getCategory() const
Definition: loggerConfiguration.hpp:76
~LoggerConfiguration()
Definition: loggerConfiguration.cpp:49