OpcUaCanOpen
CANopen OPC-UA server
ComponentAttributes.cpp
Go to the documentation of this file.
1
/* © Copyright CERN, 2015. All rights not expressly granted are reserved.
2
* ComponentAttributes.cpp
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
#include "
ComponentAttributes.h
"
23
24
ComponentAttributes::ComponentAttributes
(
const
Log::LogComponentHandle
& handle,
const
std::string
&
name
,
const
Log::LOG_LEVEL
& initialLogLevel
/*=INF*/
)
25
:m_handle(handle), m_name(
name
), m_level(initialLogLevel)
26
{}
27
28
std::string
ComponentAttributes::getName
()
const
29
{
30
return
m_name
;
31
}
32
33
Log::LogComponentHandle
ComponentAttributes::getHandle
()
const
34
{
35
return
m_handle
;
36
}
37
38
Log::LOG_LEVEL
ComponentAttributes::getLevel
()
const
39
{
40
return
m_level
;
41
}
42
43
void
ComponentAttributes::setLevel
(
const
Log::LOG_LEVEL
& level)
44
{
45
m_level
= level;
46
}
LogIt
src
ComponentAttributes.cpp
Generated on Fri Sep 11 2020 14:30:09 for OpcUaCanOpen by
1.8.14