Nuclide
Software Development Kit for id Technology (BETA)
Main Page
Related Pages
Classes
Dict.h
1
/*
2
* Copyright (c) 2024 Vera Visions LLC.
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
33
class
34
ncDict
35
{
36
public
:
37
void
ncDict
(
void
);
38
39
nonvirtual
string
Name(
void
);
40
nonvirtual
int
GetInteger(
string
);
41
nonvirtual
float
GetFloat(
string
);
42
nonvirtual
string
GetString(
string
);
43
nonvirtual vector GetVector(
string
);
44
nonvirtual
bool
GetBool(
string
);
45
46
nonvirtual
void
SetDeclBody(
string
);
47
nonvirtual
string
GetDeclBody(
void
);
48
49
nonvirtual
void
AddKey(
string
,
string
);
50
nonvirtual
void
RemoveKey(
string
);
51
52
nonvirtual
int
TokenCount(
void
);
53
54
static
ncDict
InitWithSpawnData(
string
);
55
static
ncDict
LoadDeclFromFile(
string
,
string
);
56
57
private
:
58
nonvirtual
void
_AddRemoveKey(
string
,
string
,
bool
);
59
string
m_strBody;
60
string
m_declPath;
61
string
m_filePath;
62
};
63
// end of decl
ncDict
This class is responsible for handling groups of key/value pairs.
Definition:
Dict.h:35
src
shared
system
Dict.h
2009-2025 (C) Nuclide is a project by
Vera Visions, L.L.C.
and is available under the
ISC License
.