libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
MapType.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
18#include <cstdint>
19#include <string>
20
21namespace introvirt {
22namespace windows {
23namespace nt {
24
25class MapType {
26 public:
28 MapType(uint32_t value);
29
30 public:
31 enum Flag {
34 };
35
36 public:
40 uint32_t getValue() const;
41
42 operator uint32_t() const;
43
47 void setValue(uint32_t value);
48
53 bool isFlagEnabled(Flag flag) const;
54
58 void disableFlag(Flag flag);
59
63 void enableFlag(Flag flag);
64
69 std::string to_string(const std::string& separator = " ") const;
70
71 private:
72 uint32_t value{0};
73};
74
75std::string to_string(const MapType& options, const std::string& separator = " ");
76
77} /* namespace nt */
78} /* namespace windows */
79} /* namespace introvirt */
Definition MapType.hh:25
Flag
Definition MapType.hh:31
@ MAP_SYSTEM
Definition MapType.hh:33
@ MAP_PROCESS
Definition MapType.hh:32
bool isFlagEnabled(Flag flag) const
std::string to_string(const std::string &separator=" ") const
void setValue(uint32_t value)
const std::string & to_string(APPHELPCACHESERVICECLASS val)
Core IntroVirt classes.
Definition Cr0.hh:20