blob: 603aedb5d6e0b854099c4780015e64ed979410ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <AK/AKString.h>
#include <AK/HashMap.h>
class KParams {
AK_MAKE_ETERNAL
public:
static KParams& the();
KParams(const String& cmdline);
const String& cmdline() const { return m_cmdline; }
String get(const String& key) const;
bool has(const String& key) const;
private:
String m_cmdline;
HashMap<String, String> m_params;
};
|