Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F554087
Configuration.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
944 B
Subscribers
None
Configuration.cpp
View Options
#include
"Configuration.h"
Configuration
::
Configuration
(
const
WCHAR
*
name
,
Type
type
)
{
wcscpy_s
(
this
->
name
,
name
);
this
->
type
=
type
;
valueNumeric
=
0
;
valueString
[
0
]
=
L
'\0'
;
}
const
WCHAR
*
Configuration
::
getName
()
const
{
return
name
;
}
Configuration
::
Type
Configuration
::
getType
()
const
{
return
type
;
}
DWORD_PTR
Configuration
::
getNumeric
()
const
{
return
valueNumeric
;
}
void
Configuration
::
setNumeric
(
DWORD_PTR
value
)
{
valueNumeric
=
value
;
}
const
WCHAR
*
Configuration
::
getString
()
const
{
return
valueString
;
}
void
Configuration
::
setString
(
const
WCHAR
*
str
)
{
wcsncpy_s
(
valueString
,
str
,
_countof
(
valueString
));
}
bool
Configuration
::
getBool
()
const
{
return
getNumeric
()
==
1
;
}
void
Configuration
::
setBool
(
bool
flag
)
{
setNumeric
(
flag
?
1
:
0
);
}
bool
Configuration
::
isTrue
()
const
{
return
getBool
();
}
void
Configuration
::
setTrue
()
{
setBool
(
true
);
}
void
Configuration
::
setFalse
()
{
setBool
(
false
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Feb 10, 12:59 AM (19 h, 7 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
62/16/8652c437a03956e3f9c73e489af4
Attached To
rSCY Scylla
Event Timeline
Log In to Comment