Iguana
1.2.1
Implementation Guardian of Analysis Algorithms
Toggle main menu visibility
Loading...
Searching...
No Matches
Object.h
1
#pragma once
2
3
#include <memory>
4
#include <string>
5
6
#include "Logger.h"
7
8
namespace
iguana {
9
11
class
Object
12
{
13
14
public
:
15
18
Object
(std::string_view name =
""
,
Logger::Level
lev =
Logger::DEFAULT_LEVEL
);
19
~Object
() {}
20
23
std::unique_ptr<Logger>&
Log
();
24
27
void
SetName
(std::string_view name);
28
30
std::string
GetName
()
const
;
31
35
void
SetLogLevel
(std::string_view lev);
36
40
void
SetLogLevel
(
Logger::Level
const
lev);
41
43
std::unique_ptr<Logger>&
GetLog
();
44
45
46
protected
:
47
49
std::string
m_name
;
50
52
std::unique_ptr<Logger>
m_log
;
53
};
54
}
iguana::Logger::Level
Level
Definition
Logger.h:37
iguana::Logger::DEFAULT_LEVEL
static Level const DEFAULT_LEVEL
The default log level.
Definition
Logger.h:48
iguana::Object::GetLog
std::unique_ptr< Logger > & GetLog()
iguana::Object::SetLogLevel
void SetLogLevel(std::string_view lev)
iguana::Object::SetName
void SetName(std::string_view name)
iguana::Object::SetLogLevel
void SetLogLevel(Logger::Level const lev)
iguana::Object::Log
std::unique_ptr< Logger > & Log()
iguana::Object::m_name
std::string m_name
The name of this object.
Definition
Object.h:49
iguana::Object::m_log
std::unique_ptr< Logger > m_log
Logger instance for this object
Definition
Object.h:52
iguana::Object::GetName
std::string GetName() const
iguana::Object::Object
Object(std::string_view name="", Logger::Level lev=Logger::DEFAULT_LEVEL)
iguana_v1.2.1
src
iguana
services
Object.h
Generated by
1.18.0