aboutsummaryrefslogtreecommitdiffstats
path: root/include/IdentityManager.h
blob: 0e2d08f3c0a6e79fe62a7601b40fccd5a7332294 (plain) (blame)
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
#pragma once

#include "Api.h"
#include "ObjectManager.h"

/**
 * @file IdentityManager.h
 * @brief Declares object capability checks.
 */

namespace nt
{
    /** @brief Checks whether an object supports identity-level operations. */
    class NT_API IdentityManager
    {
    public:
        /**
         * @brief Looks into the methods of the object type and asserts if it can be opened.
         * @param object Object to inspect.
         * @return True when the object can be opened.
         */
        const bool CanOpen(ObjectManager::registry* object);

        /**
         * @brief Checks whether an object can be closed.
         * @param object Object to inspect.
         * @return True when the object can be closed.
         */
        const bool CanClose(ObjectManager::registry* object);
    };
}