-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathIModule.hpp
44 lines (35 loc) · 1.01 KB
/
IModule.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
#ifndef IMODULE_HPP
#define IMODULE_HPP
#include "ctmacros.hpp"
///@cond INTERNAL_DOCS
namespace MAT_NS_BEGIN
{
class ILogManager;
/// <summary>
/// IModule is a broad container interface that allows an application to override an internal component
/// </summary>
class MATSDK_LIBABI IModule
{
public:
/// <summary>
/// IModule destructor
/// </summary>
virtual ~IModule() noexcept = default;
/// <summary>
/// Initializes the module.
/// Invoked as part of parent ILogManager is constructed.
/// </summary>
virtual void Initialize(ILogManager*) noexcept {};
/// <summary>
/// Tears down the module.
/// Invoked as part of parent ILogManager's FlushAndTeardown() method.
/// </summary>
virtual void Teardown() noexcept {};
};
/// @endcond
} MAT_NS_END
#endif // IMODULE_HPP