Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F554952
Configuration.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
782 B
Subscribers
None
Configuration.h
View Options
#pragma once
#include
<windows.h>
class
Configuration
{
public
:
enum
Type
{
String
,
Decimal
,
Hexadecimal
,
Boolean
};
static
const
size_t
CONFIG_NAME_LENGTH
=
100
;
static
const
size_t
CONFIG_STRING_LENGTH
=
100
;
Configuration
(
const
WCHAR
*
name
=
L
""
,
Type
type
=
String
);
const
WCHAR
*
getName
()
const
;
Type
getType
()
const
;
DWORD_PTR
getNumeric
()
const
;
void
setNumeric
(
DWORD_PTR
value
);
const
WCHAR
*
getString
()
const
;
void
setString
(
const
WCHAR
*
str
);
bool
getBool
()
const
;
void
setBool
(
bool
flag
);
// Redundant (we have getBool and setBool), but easier on the eye
bool
isTrue
()
const
;
void
setTrue
();
void
setFalse
();
private
:
WCHAR
name
[
CONFIG_NAME_LENGTH
];
Type
type
;
DWORD_PTR
valueNumeric
;
WCHAR
valueString
[
CONFIG_STRING_LENGTH
];
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, Feb 11, 4:03 AM (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2d/72/5288711604516c309ec3f4d791a3
Attached To
rSCY Scylla
Event Timeline
Log In to Comment