ACF $AcfVersion:0$
CTracingConfigurationComp.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
9
10
11namespace ilog
12{
13
14
96 virtual public ilog::ITracingConfiguration,
97 virtual public iser::ISerializable
98{
99public:
102
103 I_BEGIN_COMPONENT(CTracingConfigurationComp);
104 I_REGISTER_INTERFACE(ilog::ITracingConfiguration);
105 I_REGISTER_INTERFACE(iser::ISerializable);
106 I_ASSIGN(m_defaultTracingLevel, "DefaulTracingtLevel", "Default tracing level, -1 tracing off, 0 tracing all", true, -1);
107 I_END_COMPONENT;
108
110
111 // reimplemented (ilog::ITracingConfiguration)
112 virtual int GetTracingLevel() const override;
113 virtual void SetTracingLevel(int tracingLevel) override;
114
115 // reimplemented (iser::ISerializable)
116 virtual bool Serialize(iser::IArchive& archive) override;
117
118protected:
119 // reimplemented (icomp::CComponentBase)
120 virtual void OnComponentCreated() override;
121
122private:
123 I_ATTR(int, m_defaultTracingLevel);
124
125 int m_tracingLevel;
126};
127
128
129} // namespace ilog
130
Base class for component implementation.
Component for configuring tracing verbosity levels.
virtual void SetTracingLevel(int tracingLevel) override
Set the tracing level.
virtual int GetTracingLevel() const override
Get the current tracing level.
virtual void OnComponentCreated() override
icomp::CComponentBase BaseClass
Base class typedef.
virtual bool Serialize(iser::IArchive &archive) override
Load or store state of this object as a archive stream.
Interface for configuring tracing verbosity levels.
Represents an input/output persistence archive for object serialization.
Definition IArchive.h:164
Common class for all classes which objects can be archived or restored from archive.
This namespace contains implementations for the logging functionality.