OpcUaCanOpen
CANopen OPC-UA server
ComponentAttributes.h
Go to the documentation of this file.
1
/* © Copyright CERN, 2015. All rights not expressly granted are reserved.
2
* ComponentAttributes.h
3
*
4
* Created on: Aug 18, 2015
5
* Author: Benjamin Farnham <benjamin.farnham@cern.ch>
6
*
7
* This file is part of Quasar.
8
*
9
* Quasar is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU Lesser General Public Licence as published by
11
* the Free Software Foundation, either version 3 of the Licence.
12
*
13
* Quasar is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public Licence for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with Quasar. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef COMPONENTATTRIBUTES_H_
23
#define COMPONENTATTRIBUTES_H_
24
25
#include <string>
26
#include <stdint.h>
27
#include "
LogLevels.h
"
28
#include "
LogItStaticDefinitions.h
"
29
30
class
ComponentAttributes
31
{
32
public
:
33
ComponentAttributes
(
const
Log::LogComponentHandle
& handle,
const
std::string
&
name
,
const
Log::LOG_LEVEL
& initialLogLevel =
Log::INF
);
34
35
std::string
getName
()
const
;
36
Log::LogComponentHandle
getHandle
()
const
;
37
38
Log::LOG_LEVEL
getLevel
()
const
;
39
void
setLevel
(
const
Log::LOG_LEVEL
& level);
40
41
private
:
42
const
Log::LogComponentHandle
m_handle
;
43
const
std::string
m_name
;
44
Log::LOG_LEVEL
m_level
;
45
};
46
47
#endif
/* COMPONENTATTRIBUTES_H_ */
LogIt
include
ComponentAttributes.h
Generated on Fri Sep 11 2020 14:30:08 for OpcUaCanOpen by
1.8.14